image lib & Qt4
K.S.Sreeram
sreeram at tachyontech.net
Sat Jun 3 09:41:57 EDT 2006
My bad.
I was hacking the code trying to support RGBA mode images, and
inadvertently i tried im.tostring("raw","BGRX") on the RGBA mode image.
So BGRX does indeed work for RGB mode images.
While trying to support RGBA mode images, i realized that a BGRA raw
mode is needed for working with QImage. It doesn't seem to be supported
by PIL. Any workarounds?
Regards
Sreeram
Fredrik Lundh wrote:
> $ python
> >>> import Image
> >>> im = Image.new("RGB", (100, 100))
> >>> print len(im.tostring("raw", "BGRX"))
> 40000
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20060603/6920ccd7/attachment.sig>
More information about the Python-list
mailing list