Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 718 Bytes

ImageWin.rst

File metadata and controls

29 lines (18 loc) · 718 Bytes

:pyImageWin Module (Windows-only)

The :pyImageWin 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:

from PIL import ImageWin

dib = ImageWin.Dib(...)

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

PIL.ImageWin.Dib

PIL.ImageWin.HDC

PIL.ImageWin.HWND