<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic UpdateBitmap throwing InvalidArgumentException in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/updatebitmap-throwing-invalidargumentexception/m-p/411228#M10997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I set an image (16x16 bmp) to a BaseCommand when it is first created which works fine and shows correctly. However in the OnClick, I want to switch the image at runtime to a different image depending on when it was clicked. When I call base.UpdateBitmap I receive an InvalidArgumentException, however I tested this image by setting it as the startup image and it worked fine so it doesn't appear to be an issue with my image. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else had a problem with UpdateBitmap or an idea what else could be happening?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Apr 2013 20:33:40 GMT</pubDate>
    <dc:creator>WayneGuidry</dc:creator>
    <dc:date>2013-04-12T20:33:40Z</dc:date>
    <item>
      <title>UpdateBitmap throwing InvalidArgumentException</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/updatebitmap-throwing-invalidargumentexception/m-p/411228#M10997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I set an image (16x16 bmp) to a BaseCommand when it is first created which works fine and shows correctly. However in the OnClick, I want to switch the image at runtime to a different image depending on when it was clicked. When I call base.UpdateBitmap I receive an InvalidArgumentException, however I tested this image by setting it as the startup image and it worked fine so it doesn't appear to be an issue with my image. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else had a problem with UpdateBitmap or an idea what else could be happening?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Apr 2013 20:33:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/updatebitmap-throwing-invalidargumentexception/m-p/411228#M10997</guid>
      <dc:creator>WayneGuidry</dc:creator>
      <dc:date>2013-04-12T20:33:40Z</dc:date>
    </item>
  </channel>
</rss>

