![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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. |
#3
|
|||
|
|||
![]()
Are transparent and semi transparent pixel images supported as Ribbon button
icons, as I do not see any mask kind of thing for adding transparency in ribbon icons. I am adding ribbon button using xml file and providing icon using getImage callback. "Ken Slovak - [MVP - Outlook]" wrote: 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. |
#4
|
|||
|
|||
![]()
For the ribbon the transparency is stored in the alpha layer of the image.
Usually the best results are from PNG files. -- 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 ... Are transparent and semi transparent pixel images supported as Ribbon button icons, as I do not see any mask kind of thing for adding transparency in ribbon icons. I am adding ribbon button using xml file and providing icon using getImage callback. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unable to display Custom Icons On outlook 2007 ribbon using VB 6.0 | Ashok | Add-ins for Outlook | 7 | February 15th 08 05:04 PM |
CommandBarButton Picture, transparency | Mike | Add-ins for Outlook | 1 | September 26th 07 02:19 PM |
Icons in Outlook 2007 custom forms | Michael Ray Brown | Outlook - Using Contacts | 0 | February 15th 07 02:41 PM |
Screen Shot of my problem with telephone icons in contacts folder | shrink2005 | Outlook - Using Contacts | 0 | November 9th 06 09:15 PM |
Achieve transparency for icons in Outlook 2000 add-in. | Vinayakc | Add-ins for Outlook | 1 | July 5th 06 03:11 PM |