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.

new
  • References/Ruby on Rails/Ruby/Classes/TkPhotoImage

new(*args) Class Public methods Create a new image with the given options.

2025-01-10 15:47:30
get
  • References/Ruby on Rails/Ruby/Classes/TkPhotoImage

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

2025-01-10 15:47:30
cget_strict
  • References/Ruby on Rails/Ruby/Classes/TkPhotoImage

cget_strict(option) Instance Public methods

2025-01-10 15:47:30