[wx-dev] bug in wxAlphaPixelData in wxMac and wxGTK?
Andrew Trevorrow
andrew at trevorrow.com
Fri Mar 2 17:47:22 PST 2007
Robin Dunn wrote:
> Only do the premultiplication on wxMSW. ...
Thanks Robin. The wxGTK results now match wxMSW. The wxMac results
are slightly different but much less obvious than before, so I guess
I can live with that.
Too bad the image.cpp code doesn't mention the platform difference!
And it also divides by 256 rather than 255, as in your macro:
> #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
wxAlphaPixelData doesn't seem to appear anywhere in the wx docs.
Andrew
More information about the wx-dev
mailing list