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.

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

get(x, y) Instance Public methods Returns the color of the pixel at coordinates

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