Widget which can display colored images in GIF, PPM/PGM format.
|
|
__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. |
|
|
|
|
zoom(self,
x,
y='')
Return a new PhotoImage with the same image as this widget but zoom
it with X and Y. |
|
|
|
|
subsample(self,
x,
y='')
Return a new PhotoImage based on the same image as this widget but
use only every Xth or Yth pixel. |
|
|
|
|
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. |
|
|
|
|
write(self,
filename,
format=None,
from_coords=None)
Write image to file FILENAME in FORMAT starting from position
FROM_COORDS. |
|
|
|
Inherited from Image:
__del__,
__setitem__,
__str__,
config,
configure,
height,
type,
width
|