mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
2761a02d13
(cherry picked from commit b077850baa
)
32 lines
761 B
ReStructuredText
32 lines
761 B
ReStructuredText
.. py:module:: PIL.ImageWin
|
|
.. py:currentmodule:: PIL.ImageWin
|
|
|
|
:py:mod:`~PIL.ImageWin` Module (Windows-only)
|
|
=============================================
|
|
|
|
The :py:mod:`~PIL.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
|
|
:members:
|
|
|
|
.. autoclass:: PIL.ImageWin.HWND
|
|
:members:
|