ImageQt Module
The ImageQt
module contains support for creating PyQt4, PyQt5, PySide orPySide2 QImage objects from PIL images.
Qt 4 reached end-of-life on 2015-12-19. Its Python bindings are also EOL: PyQt4 since2018-08-31 and PySide since 2015-10-14.
Support for PyQt4 and PySide is deprecated since Pillow 6.0.0 and will be removed in afuture version. Please upgrade to PyQt5 or PySide2.
1.1.6 新版功能.
- class
ImageQt.
ImageQt
(image) - Creates an
ImageQt
object from a PILImage
object. This class is a subclass ofQtGui.QImage, which means that you can pass the resulting objects directlyto PyQt4/PyQt5/PySide API functions and methods.
This operation is currently supported for mode 1, L, P, RGB, and RGBAimages. To handle other modes, you need to convert the image first.
当前内容版权归 ComingSpring 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ComingSpring .