gimp_image_get_cmap - Returns the image's colormap
SYNOPSIS
(num_bytes,cmap) = gimp_image_get_cmap (image)
DESCRIPTION
This procedure returns an actual pointer to the image's colormap, as well as the number of bytes contained in the colormap. The actual number of colors in the transmitted colormap will be "num_bytes" / 3. If the image is not of base type INDEXED, this pointer will be NULL.
INPUT ARGUMENTS
TYPE
NAME
DESCRIPTION
IMAGE
image
The image
RETURN VALUES
TYPE
NAME
DESCRIPTION
INT32
num_bytes
Number of bytes in the colormap array: 0 < num_bytes
INT8ARRAY
cmap
The image's colormap
SOME SYNTAX ALTERNATIVES
cmap = $image->get_cmap
AUTHOR
Spencer Kimball & Peter Mattis (c)1995-1996 Spencer Kimball & Peter Mattis