Gimp.Image.prototype.get_colormap

function get_colormap(): [return_value: ByteArray, num_colors: Number(gint)] {
    // Gjs wrapper for gimp_image_get_colormap()
}
  

Returns the image's colormap

This procedure returns an actual pointer to the image's colormap, as well as the number of colors contained in the colormap. If the image is not of base type INDEXED, this pointer will be NULL.

return_value

The image's colormap.

num_colors

Returns the number of colors in the colormap array.