2

I am changing one icon on my extension toggle toolbar in runtime using:

MyBase.UpdateBitmap(New Bitmap(Me.GetType(), bitmapResourceName))

This works fine but I get a border/highlight around my image. What can I do to prevent that?

I am using ArcGIS Desktop version 10.

  • what are the dimensions of your bitmap? Also I'm not certain, but you might get a resource leak with your code ... I'd recommend instantiating all the bitmaps you need at startup and assign to member variables, instead of calling New Bitmap multiple times for the same bitmap. – Kirk Kuykendall Mar 15 '11 at 3:26
  • Are you using a partially transparent PNG for your icon? If so, this answer might be applicable: gis.stackexchange.com/questions/22037/… – blah238 Jun 13 '12 at 22:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.