S
Saeed
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 (alpha>0
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.
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 (alpha>0
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.