[wxPython-users] wx.AlphaPixelData question
Kevin Ollivier
kevino at theolliviers.com
Thu Feb 1 16:32:55 PST 2007
Hi Danny,
On Feb 1, 2007, at 10:58 AM, Danny Shevitz wrote:
> Howdy,
>
> I have used img2py to create a bitmap. I am now trying to
> manipulate it using raw bitmap access. wx.AlphaPixelData is
> dying, telling me I have the wrong kind of Bitmap. I'm pretty sure
> my original .bmp file was a three color bitmap, with no
> alpha. Is there any way to work around this. I have found
> wx.AlphaPixelData to be completely undocumented at wxPython (or
> wxWidgets).
Use wx.NativePixelData instead. wx.AlphaPixelData is specifically for
bitmaps with alpha information in them.
Regards,
Kevin
> I am enclosing a minimal code example that demonstrates the problem.
>
> TIA,
> Danny
> <BitmapAccessTest.py>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-
> help at lists.wxwidgets.org
More information about the wxpython-users
mailing list