View Single Post
  #1  
Old August 24th 09, 08:31 AM posted to microsoft.public.outlook.program_addins
Saeed
external usenet poster
 
Posts: 13
Default problem with transparency in custom icons.

I am facing problem while adding custom icons to CommandBarButton in toolbar.
I have icons which are in png format with transparency. For showing them I
have created mask with black and white pixels and set button.picture to png
icon and button.mask to the mask png. I am able to see the icons.
The problem here is with pixels in icon which are semi-transparent (alpha0
but 255) like shading in the boundary. What should be
the color of mask for those pixels. If I make it white, I cant see those
pixels. If I make it black, those pixels look in a dark color most likely
because the background has now become visible.
Are the semi-transparent pixels allowed in the icon.
Ads