Colormap.allocColors

Allocates colors from a colormap.

class Colormap
int
allocColors

Parameters

colors GdkColor[]

The color values to allocate. On return, the pixel values for allocated colors will be filled in.

writeable int

If TRUE, the colors are allocated writeable (their values can later be changed using gdk_color_change()). Writeable colors cannot be shared between applications.

bestMatch int

If TRUE, GDK will attempt to do matching against existing colors if the colors cannot be allocated as requested.

success int[]

An array of length ncolors. On return, this indicates whether the corresponding color in colors was successfully allocated or not.

Return Value

Type: int

The number of colors that were not successfully allocated.

Meta