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_transparency
  • References/Ruby on Rails/Ruby/Classes/TkPhotoImage

get_transparency(x, y) Instance Public methods Returns a boolean indicating

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

redither() Instance Public methods

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

data(keys={}) Instance Public methods Returns image data in the form of a string

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

cget(option) Instance Public methods Returns the current value of the configuration

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

copy(src, *opts) Instance Public methods Copies a region from the image called

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

put(data, *opts) Instance Public methods

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

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

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

read(file, *opts) Instance Public methods

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

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

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

write(file, *opts) Instance Public methods

2025-01-10 15:47:30