Method
GimpPaletteentry_set_color
Declaration [src]
gboolean
gimp_palette_entry_set_color (
GimpPalette* palette,
gint entry_num,
const GimpRGB* color
)
Description [src]
Sets the color of an entry in the palette.
Sets the color of the entry at the zero-based index into the palette. Returns an error when the index is out of range. Returns an error when the palette is not editable.
Available since: | 2.2 |
Parameters
entry_num |
gint |
The entry to get. |
|
color |
GimpRGB |
The new color. |
|
The data is owned by the caller of the function. |