Function

Gimppalette_entry_get_color

since: 2.2

Declaration [src]

gboolean
gimp_palette_entry_get_color (
  const gchar* name,
  gint entry_num,
  GimpRGB* color
)

Description [src]

Gets the specified palette entry from the specified palette.

This procedure retrieves the color of the zero-based entry specified for the specified palette. It returns an error if the entry does not exist.

Available since: 2.2

Parameters

name

Type: const gchar*

The palette name.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
entry_num

Type: gint

The entry to retrieve.

color

Type: GimpRGB

The color requested.

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

Return value

Type: gboolean

TRUE on success.