The ImageTk module contains support to create and modify Tkinter BitmapImage and PhotoImage objects.
For examples, see the demo programs in the Scripts directory.
Create a Tkinter-compatible bitmap image.
For more information about this class, see The BitmapImage Class.
Creates a Tkinter-compatible photo image.
For more information about this class, see The PhotoImage Class.
Create a Tkinter-compatible bitmap image.
The given image must have mode "1". Pixels having value 0 are treated as transparent. Options, if any, are passed on to Tkinter. The most commonly used option is foreground, which is used to specify the colour for the non-transparent parts. See the Tkinter documentation for information on how to specify colours.
Create a photo image object. The constructor takes either a PIL image, or a mode and a size. Alternatively, you can use the file or data options to initialize the photo image object.