Tkinter :: PhotoImage :: Class PhotoImage
[hide private]
[frames] | no frames]

Class PhotoImage

Image --+
        |
       PhotoImage

Widget which can display colored images in GIF, PPM/PGM format.

Instance Methods [hide private]
 
__getitem__(self, key)
 
__init__(self, name=None, cnf={}, master=None, **kw)
Create an image with NAME.
 
blank(self)
Display a transparent image.
 
cget(self, option)
Return the value of OPTION.
 
copy(self)
Return a new PhotoImage with the same image as this widget.
 
get(self, x, y)
Return the color (red, green, blue) of the pixel at X,Y.
 
put(self, data, to=None)
Put row formated colors to image starting from position TO, e.g.
 
subsample(self, x, y='')
Return a new PhotoImage based on the same image as this widget but use only every Xth or Yth pixel.
 
write(self, filename, format=None, from_coords=None)
Write image to file FILENAME in FORMAT starting from position FROM_COORDS.
 
zoom(self, x, y='')
Return a new PhotoImage with the same image as this widget but zoom it with X and Y.

Inherited from Image: __del__, __setitem__, __str__, config, configure, height, type, width

Class Variables [hide private]

Inherited from Image (private): _last_id

Method Details [hide private]

__getitem__(self, key)
(Indexing operator)

 
Overrides: Image.__getitem__

__init__(self, name=None, cnf={}, master=None, **kw)
(Constructor)

 

Create an image with NAME.

Valid resource names: data, format, file, gamma, height, palette, width.

Overrides: Image.__init__

put(self, data, to=None)

 

Put row formated colors to image starting from position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))