Status XAllocColorCells(display, colormap, contig, plane_masks_return, nplanes,
pixels_return, npixels)
Display *display;
Colormap colormap;
Bool contig;
unsigned long plane_masks_return[];
unsigned int nplanes;
unsigned long pixels_return[];
unsigned int npixels;
| display | Specifies the connection to the X server. |
| colormap | Specifies the colormap. |
| contig | Specifies a Boolean value that indicates whether the planes must be contiguous. |
| plane_mask_return | Returns an array of plane masks. |
| nplanes | Specifies the number of plane masks that are to be returned in the plane masks array. |
| pixels_return | Returns an array of pixel values. |
| npixels | Specifies the number of pixel values that are to be returned in the pixels_return array. |
XAllocColorCells() can generate BadColor and BadValue errors.
| BadColor | A value for a Colormap argument does not name a defined Colormap. |
| BadValue | Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error. |