Transparent Areas of PNG files do not render Properly

I had replied to another post hinting at this, but I think I now can confirm that the transparent areas on PNG files do not show up transparent in WPF/E.

They do in WPF

I confirmed by using expression blend, open a full WPF file, add an image element, as below

<Image Width="159" Height="73" Canvas.Left="265" Canvas.Top="136" Source="arrow6.png"/>

Using Image6.png which is an image I have with a tranparent area, this renders correctly with all transparent areas, showing as prorerly transparent.

Using the same image file, and same image markup in WPF/E does not render the transparent areas properly.

Hope this helps
Kevgor

[730 byte] By [Kevgor] at [2007-12-31]
# 1

This might be an issue with IE rather than WPF/E. See this page for more info about it. I created an example which works great in IE7.

http://blogs.sqlxml.org/wpfe/transpng/

See if that example works for you...

BryantLikes at 2007-9-6 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 2

No Car

I am using IE7 as well.

Kevgor

Kevgor at 2007-9-6 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 3

Weird. What operating system are you using? Any other settings in IE (language, etc)?

What about on the page I linked to? Does it work for you there?

BryantLikes at 2007-9-6 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 4

Transparent PNGs do work for me. I have tested on both Vista Business and XP Home running IE7.

Michael S. Scherotter

mscherotter at 2007-9-6 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 5

I did get Bryants car to show up, but some PNG's that I had converted from BMP format still do not work. I'll be looking into this further, and keep you posted if I find a definitive root cause.

Kevgor

Kevgor at 2007-9-6 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...