Method

GimpPaletteget_colors

since: 2.6

Declaration [src]

GimpRGB*
gimp_palette_get_colors (
  GimpPalette* palette,
  gint* num_colors
)

Description [src]

Gets colors in the palette.

Returns an array of colors in the palette.

Available since: 2.6

Parameters

num_colors

Type: gint*

Length of the colors array.

The argument will be set by the function.

Return value

Type: An array of GimpRGB*

     The colors in the palette.
     The returned value must be freed with g_free().

The length of the array is in the num_colors argument.
The caller of the method takes ownership of the data, and is responsible for freeing it.