Type:
Class
Constants:
NullArgOptionKeys : [ "shrink", "grayscale" ]

A photo is an image whose pixels can display any color or be transparent. At present, only GIF and PPM/PGM formats are supported, but an interface exists to allow additional image file formats to be added easily.

This class documentation is a copy from the original Tcl/Tk at www.tcl.tk/man/tcl8.5/TkCmd/photo.htm with some rewrited parts.

set_transparency
  • References/Ruby on Rails/Ruby/Classes/PhotoImage

set_transparency(x, y, state) Instance Public methods Makes the pixel at (x

2025-01-10 15:47:30
write
  • References/Ruby on Rails/Ruby/Classes/PhotoImage

write(file, *opts) Instance Public methods

2025-01-10 15:47:30
blank
  • References/Ruby on Rails/Ruby/Classes/PhotoImage

blank() Instance Public methods Blank the image; that is, set the entire image

2025-01-10 15:47:30