This procedure gets the pixel value at the specified coordinates. The 'num_channels' argument must always be equal to the bytes-per-pixel value for the specified drawable.
INPUT ARGUMENTS
TYPE
NAME
DESCRIPTION
DRAWABLE
drawable
The drawable
INT32
x_coord
The x coordinate
INT32
y_coord
The y coordinate
RETURN VALUES
TYPE
NAME
DESCRIPTION
INT32
num_channels
The number of channels for the pixel
INT8ARRAY
pixel
The pixel value
SOME SYNTAX ALTERNATIVES
pixel = $drawable->get_pixel (x_coord,y_coord)
AUTHOR
Spencer Kimball & Peter Mattis (c)1997 Spencer Kimball & Peter Mattis