Re: [PyKDE] (transparent) PIL image to QImage conversion?

2006-04-23 Thread David Boddie
On Thu, 6 Apr 2006 16:37:07, ORCAN OGETBIL wrote: My problem is, the JPEG encoding kills the transparency of my PNG images. When I do RAW encoding, I get nothing from the QByteArray object. I also couldn't get the thing work with a GIF encoding. PIL's tostring() function doesn't support PNG

Re: [PyKDE] (transparent) PIL image to QImage conversion?

2006-04-23 Thread Orcan Ogetbil
On Sun, 2006-04-23 at 23:20 +0200, David Boddie wrote: On Thu, 6 Apr 2006 16:37:07, ORCAN OGETBIL wrote: My problem is, the JPEG encoding kills the transparency of my PNG images. When I do RAW encoding, I get nothing from the QByteArray object. I also couldn't get the thing work with a

[PyKDE] (transparent) PIL image to QImage conversion?

2006-04-06 Thread ORCAN OGETBIL
Hi, I need to convert a PIL (Python Imaging Library) image to a QImage object so I can display it in a PyQt application. I found a basic example at: http://lists.kde.org/?l=pykdem=114235100819012w=2 There the PIL image is converted to a string using a jpeg encoder first; then the string is