Tkinter.PhotoImage¶
-
class
Tkinter.PhotoImage(name=None, cnf={}, master=None, **kw)[source]¶ Widget which can display colored images in GIF, PPM/PGM format.
Methods¶
__del__() |
|
__getitem__(key) |
|
__init__([name, cnf, master]) |
Create an image with NAME. |
__setitem__(key, value) |
|
__str__() |
|
blank() |
Display a transparent image. |
cget(option) |
Return the value of OPTION. |
config(**kw) |
Configure the image. |
configure(**kw) |
Configure the image. |
copy() |
Return a new PhotoImage with the same image as this widget. |
get(x, y) |
Return the color (red, green, blue) of the pixel at X,Y. |
height() |
Return the height of the image. |
put(data[, to]) |
Put row formatted colors to image starting from position TO, e.g. |
subsample(x[, y]) |
Return a new PhotoImage based on the same image as this widget but use only every Xth or Yth pixel. |
type() |
Return the type of the imgage, e.g. |
width() |
Return the width of the image. |
write(filename[, format, from_coords]) |
Write image to file FILENAME in FORMAT starting from position FROM_COORDS. |
zoom(x[, y]) |
Return a new PhotoImage with the same image as this widget but zoom it with a factor of x in the X direction and y in the Y direction. |