View Single Post
  #2  
Old August 24th 09, 02:07 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default problem with transparency in custom icons.

Semi-transparent pixels aren't supported. In fact the spec for a command bar
button image is 16x16 pixels with 8-bit color in a BMP file. Anything else
may or may not display correctly.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Saeed" wrote in message
...
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