mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
2761a02d13
(cherry picked from commit b077850baa
)
21 lines
709 B
ReStructuredText
21 lines
709 B
ReStructuredText
.. py:module:: PIL.ImageQt
|
|
.. py:currentmodule:: PIL.ImageQt
|
|
|
|
:py:mod:`~PIL.ImageQt` Module
|
|
=============================
|
|
|
|
The :py:mod:`~PIL.ImageQt` module contains support for creating PyQt5 or PySide2 QImage
|
|
objects from PIL images.
|
|
|
|
.. 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
|
|
to 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.
|