A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

problem with transparency in custom icons.



 
 
Thread Tools Search this Thread Display Modes
  #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
  #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.


  #3  
Old September 8th 09, 12:12 PM posted to microsoft.public.outlook.program_addins
Saeed
external usenet poster
 
Posts: 13
Default problem with transparency in custom icons.

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  
Old September 8th 09, 04: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.

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 09:10 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.