Method

GimpPaletteentry_get_color

Declaration [src]

gboolean
gimp_palette_entry_get_color (
  GimpPalette* palette,
  gint entry_num,
  GimpRGB* color
)

Description [src]

Gets the color of an entry in the palette.

Returns the color of the entry at the given zero-based index into the palette. Returns an error when the index is out of range.

Available since:2.2

Parameters

entry_num gint
 

The index of the entry to get the color of.

color GimpRGB
 

The color at the index.

 The argument will be set by the function.
 The data is owned by the caller of the function.

Return value

Returns: gboolean
 

TRUE on success.