Image - Create and manipulate images

SYNOPSIS

imageName = tkinter.Image(imgtype [,**options])

OPTIONS

imgtype="type"
"type"specifies the type of the image, which must be one of the types currently defined (e.g. "photo" or "bitmap"). 

**options
There may be any number of option-value pairs, which provide configuration options for the new image. The legal set of options is defined separately for each Image subclasses.

METHODS 

The legal methods are:
imageName.height() 
Returns a decimal string giving the height of imageName in pixels.

imageName.type()

Returns the type of image imageName (the value of the imgtype parameter to Image class when the image was created).

imageName.width() 
Returns a decimal string giving the width of imageName in pixels.

See the manual page for the particular Image's subclasse for details for additional methods.

IMAGE SUBCLASSE 

The following image subclasses are defined by Tkinter: 

BitmapImage() 
Each pixel in the image displays a foreground color, a background color, or nothing. See the BitmapImage manual entry for more information.
PhotoImage() 
  1. Displays a variety of full-color images, using dithering to approximate colors on displays with limited color capabilities. See the PhotoImage manual entry for more information.

Comments