1995-1996
Spencer Kimball & Peter Mattis
Returns the image's colormap
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.
unknown
Type | Name | Description |
---|---|---|
PF_IMAGE | image | The image |
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() |