Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > e5936adde9b1ea7ed6dc23c107bda8ab > files > 111

python3-pillow-doc-5.4.1-1.1.mga7.noarch.rpm

.. py:module:: PIL.ImageWin
.. py:currentmodule:: PIL.ImageWin

:py:mod:`ImageWin` Module (Windows-only)
========================================

The :py:mod:`ImageWin` module contains support to create and display images on
Windows.

ImageWin can be used with PythonWin and other user interface toolkits that
provide access to Windows device contexts or window handles. For example,
Tkinter makes the window handle available via the winfo_id method:

.. code-block:: python

    from PIL import ImageWin

    dib = ImageWin.Dib(...)

    hwnd = ImageWin.HWND(widget.winfo_id())
    dib.draw(hwnd, xy)


.. autoclass:: PIL.ImageWin.Dib
    :members:


.. autoclass:: PIL.ImageWin.HDC
.. autoclass:: PIL.ImageWin.HWND