Transparent PNGs have a black background
Status: Pre-Alpha
Brought to you by:
kollivier
Transparent PNGs all have a black background, instead of showing the contents underneath.
A good test site with examples is at
http://entropymine.com/jason/testbed/pngtrans/
To reproduce in wxPython:
import wx, wx.webview
app = wx.PySimpleApp()
f = wx.Frame(None, size = (640, 480))
b = wx.webview.WebView(f)
b.LoadURL('http://entropymine.com/jason/testbed/pngtrans/')
f.Show()
app.MainLoop()
Logged In: YES
user_id=248468
Originator: NO
I've fixed this in SVN, and I will add it to the next release. (I thought there was an issue with alpha support in MSW/Linux, but it turns out that I just have to tell wxMSW/wxGTK to 'use' the alpha data once I've assigned it.)
Logged In: YES
user_id=248468
Originator: NO
Fixed in the latest binary release (r20433). Please let me know if you continue to experience problems.
Transparent PNG problem example
Logged In: YES
user_id=1731802
Originator: YES
On second glance this doesn't appear to be totally fixed.
Styled elements with a CSS background attribute set to a transparent PNG seem to suffer especially. They load and display correctly on the first "paint," but any subsequent paints (like if you resize the window or move another window over it) show the PNG as no longer having a transparent background. It goes back to black.
I attached an image demonstrating the problem.
File Added: element_bg.png