If I create a PNG in indexed mode, not RGB mode, and add it to a Silverlight page in Blend, it displays correctly with its transparent background. If I then run the application, the image shows up with a solid white background. The indexed version of the
PNG is about half of the size of the RGB version, so if this could be supported, it would allow for smaller image file sizes.
Bill Reiss
Contributor
4973 Points
947 Posts
Indexed transparent PNG shows solid background
Oct 24, 2007 01:56 PM | LINK
If I create a PNG in indexed mode, not RGB mode, and add it to a Silverlight page in Blend, it displays correctly with its transparent background. If I then run the application, the image shows up with a solid white background. The indexed version of the PNG is about half of the size of the RGB version, so if this could be supported, it would allow for smaller image file sizes.
Blend:
Silverlight:
Bill Reiss, Coauthor of Hello! Silverlight
My blog
y_makram
Contributor
6952 Points
1353 Posts
Re: Indexed transparent PNG shows solid background
Oct 24, 2007 02:46 PM | LINK
Yes, I can confirm this behavior. Silverlight does only show alpha transparency, not palette based transparency.
Yasser Makram
Independent Consultant
http://www.silverlightrecipes.com
_____
Dont forget to click "Mark as Answer" on the post that helped you.