Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

share|improve this question
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.