set_transparency

set_transparency(x, y, state) Instance Public methods Makes the pixel at (x,y) transparent if state is true, and makes that pixel opaque otherwise.

redither

redither() Instance Public methods

read

read(file, *opts) Instance Public methods

put

put(data, *opts) Instance Public methods

get_transparency

get_transparency(x, y) Instance Public methods Returns a boolean indicating if the pixel at (x,y) is transparent.

get

get(x, y) Instance Public methods Returns the color of the pixel at coordinates (x,y) in the image as a list of three integers between 0 and 255, representing the red, green and blue components respectively.

data

data(keys={}) Instance Public methods Returns image data in the form of a string. The following options may be specified: :background color If the color is specified, the data will not contain any transparency information. In all transparent pixels the color will be replaced by the specified color. :format format-name Specifies the name of the image file format handler to be used. Specifically, this subcommand searches for the first handler whose name matches an initial substrin

copy

copy(src, *opts) Instance Public methods Copies a region from the image called source to the image called destination, possibly with pixel zooming and/or subsampling. If no options are specified, this method copies the whole of source into destination, starting at coordinates (0,0) in destination. The following options may be specified: :from [x1, y1, x2, y2] Specifies a rectangular sub-region of the source image to be copied. (x1,y1) and (x2,y2) specify diagonally opposite corner

cget_strict

cget_strict(option) Instance Public methods

cget

cget(option) Instance Public methods Returns the current value of the configuration option given by option. Example, display name of the file from which image was created: puts image.cget :file