(New in 1.1.6) The ImageQt module contains support for creating PyQt4 QImage objects from PIL images.
Note: If you’re using an earlier version of PIL, you can get a copy of this module here:
http://svn.effbot.org/public/stuff/sandbox/pil/ImageQt.pyThis has been tested with PIL 1.1.5, but is likely to work with earlier versions as well.
Classes #
ImageQt #
ImageQt.ImageQt(image)
Creates an ImageQt object from a PIL image object. This class is a subclass of QtGui.QImage, which means that you can pass the resulting objects directly to PyQt4 API functions and methods.
This operation is currently supported for mode 1, L, P, RGB, and RGBA images. To handle other modes, you need to convert the image first.