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    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to