Gimp.Image.prototype.set_colormap

function set_colormap(colormap: ByteArray, num_colors: Number(gint)): Boolean {
    // Gjs wrapper for gimp_image_set_colormap()
}
  

Sets the entries in the image's colormap.

This procedure sets the entries in the specified image's colormap. The number of colors is specified by the "num_colors" parameter and corresponds to the number of INT8 triples that must be contained in the "cmap" array.

colormap

The new colormap values.

num_colors

Number of colors in the colormap array.

Returns

TRUE on success.