2013-10-14 08:45:44 +04:00
|
|
|
.. py:module:: PIL.ImageQt
|
|
|
|
.. py:currentmodule:: PIL.ImageQt
|
|
|
|
|
2020-06-22 06:52:50 +03:00
|
|
|
:py:mod:`~PIL.ImageQt` Module
|
|
|
|
=============================
|
2013-10-14 08:45:44 +04:00
|
|
|
|
2020-06-22 06:52:50 +03:00
|
|
|
The :py:mod:`~PIL.ImageQt` module contains support for creating PyQt5 or PySide2 QImage
|
2019-09-26 21:38:19 +03:00
|
|
|
objects from PIL images.
|
2019-02-15 00:44:07 +03:00
|
|
|
|
2013-10-14 08:45:44 +04:00
|
|
|
.. versionadded:: 1.1.6
|
|
|
|
|
2020-07-10 02:08:13 +03:00
|
|
|
.. py:class:: ImageQt(image)
|
2013-10-14 08:45:44 +04:00
|
|
|
|
|
|
|
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
|
2019-09-26 21:38:19 +03:00
|
|
|
to PyQt5/PySide2 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.
|