gimp_image_get_channels << INDEX >> gimp_image_get_component_active

gimp_image_get_cmap (1995-1996)

NAME
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
TYPENAMEDESCRIPTION
IMAGEimageThe image
RETURN VALUES
TYPENAMEDESCRIPTION
INT32num_bytesNumber of bytes in the colormap array: 0 < num_bytes
INT8ARRAYcmapThe image's colormap
SOME SYNTAX ALTERNATIVES
cmap = $image->get_cmap
AUTHOR
Spencer Kimball & Peter Mattis
(c)1995-1996 Spencer Kimball & Peter Mattis


This page was created by gimpdoc, written by Marc Lehmann <pcg@goof.com>