Gimp.Image.get_colormap

@accepts(Gimp.Image, int)
@returns([guint8])
def get_colormap(self, num_colors):
    # Python 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.

self

The image.

num_colors

Returns the number of colors in the colormap array.

Returns