Function

Gimppalette_get_info

Declaration [src]

gboolean
gimp_palette_get_info (
  const gchar* name,
  gint* num_colors
)

Description [src]

Retrieve information about the specified palette.

This procedure retrieves information about the specified palette. This includes the name, and the number of colors.

Available since:2.2

Parameters

name const gchar*
 

The palette name.

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

The number of colors in the palette.

 The argument will be set by the function.

Return value

Returns: gboolean
 

TRUE on success.