ImageQt module contains support for creating PyQt6, PySide6, PyQt5
or PySide2 QImage objects from PIL images.
New in version 1.1.6.
- class PIL.ImageQt.ImageQt(image)¶
ImageQtobject from a PIL
Imageobject. This class is a subclass of QtGui.QImage, which means that you can pass the resulting objects directly to PyQt6/PySide6/PyQt5/PySide2 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.