2013-10-14 08:45:44 +04:00
|
|
|
.. py:module:: PIL.ImageQt
|
|
|
|
.. py:currentmodule:: PIL.ImageQt
|
|
|
|
|
|
|
|
:py:mod:`ImageQt` Module
|
|
|
|
========================
|
|
|
|
|
2017-02-05 06:45:55 +03:00
|
|
|
The :py:mod:`ImageQt` module contains support for creating PyQt4, PyQt5 or
|
|
|
|
PySide QImage objects from PIL images.
|
2013-10-14 08:45:44 +04:00
|
|
|
|
|
|
|
.. versionadded:: 1.1.6
|
|
|
|
|
|
|
|
.. py:class:: ImageQt.ImageQt(image)
|
|
|
|
|
|
|
|
Creates an :py:class:`~PIL.ImageQt.ImageQt` object from a PIL
|
|
|
|
:py:class:`~PIL.Image.Image` object. This class is a subclass of
|
|
|
|
QtGui.QImage, which means that you can pass the resulting objects directly
|
2017-02-05 06:45:55 +03:00
|
|
|
to PyQt4/PyQt5/PySide API functions and methods.
|
2013-10-14 08:45:44 +04:00
|
|
|
|
|
|
|
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.
|