set_colormap


Description:

[ CCode ( cname = "gimp_preview_area_set_colormap" ) ]
public void set_colormap (uint8[] colormap, int num_colors)

Sets the colormap for the PreviewArea widget.

You need to call this function before you use draw with an image type of gimp_indexed_image or gimp_indexeda_image.

Since GIMP 2.2

Parameters:

this

a PreviewArea

colormap

a uchar buffer that contains the colormap

num_colors

the number of colors in the colormap