gimp-image-get-colormap

Spencer Kimball & Peter Mattis

Description

Returns the image's colormap

Help

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 in Indexed color mode, no colormap is returned.


Type

unknown

Parameters

Type Name Description
PF_IMAGE image The image

Return

Type Name Description
PF_INT num-bytes Number of bytes in the colormap array (num-bytes >= 0)
unknown colormap The image's colormap. The returned value must be freed with g_free()