context_set_palette


Description:


[ Version ( since = "2.2" ) ]
public bool context_set_palette (Palette palette)

Set the active palette.

Sets the active palette in the current context. The palette will be used in subsequent paint operations. Returns an error when the palette data was uninstalled since the palette object was created.

Parameters:

palette

The palette.

Returns:

TRUE on success.


Namespace: Gimp
Package: gimp-3.0