[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] PyQt4: Problems with QImage.loadFromData(data)
From:       com () heuel ! org
Date:       2006-03-13 17:33:32
Message-ID: 406b94b0603130933x7157062rd83ee5ef69fe7e96 () mail ! gmail ! com
[Download RAW message or body]

Dear all

I would like to use the function loadFromData of QImage, specifically
with PIL. But the code

[...]
        imagePIL = Image.open(fileName)       # e.g. a PNG file
        data = self.imagePIL.tostring()            # this should
contain the data

        image = QtGui.QImage()
        image.loadFromData(data)

[...]

Why doesn't this work?

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic