12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTClientWhitePointOfCCC (ccc)XcmsCCC ccc;XcmsColor *XcmsClientWhitePointOfCCC(ccc)XcmsCCC ccc;cccSpecifies the CCC.Both return the Client White Point of the specified CCC.6.8.4. Modifying Attributes of a Color Conversion ContextTo set the Client White Point in the CCC, use XcmsSetWhitePoint.Status XcmsSetWhitePoint(ccc, color)XcmsCCC ccc;XcmsColor *color;ccccolorSpecifies the CCC.Specifies the new Client White Point.The XcmsSetWhitePoint function changes the Client White Point in the specified CCC. Notethat the pixel member is ignored and that the color specification is left unchanged upon return.The format for the new white point must be XcmsCIEXYZFormat, XcmsCIEuvYFormat,XcmsCIExyYFormat, or XcmsUndefinedFormat. Ifthe color argument is NULL, this functionsets the format component of the Client White Point specification to XcmsUndefinedFormat,indicating that the Client White Point is assumed to be the same as the Screen White Point.This function returns nonzero status if the format for the new white point is valid; otherwise, itreturns zero.To set the gamut compression procedure and corresponding client data in a specified CCC, useXcmsSetCompressionProc.XcmsCompressionProc XcmsSetCompressionProc(ccc, compression_proc, client_data)XcmsCCC ccc;XcmsCompressionProc compression_proc;XPointer client_data;cccSpecifies the CCC.compression_procSpecifies the gamut compression procedure that is to be applied when a color liesoutside the screen’s color gamut. If NULL is specified and a function using thisCCC must convert a color specification to a device-dependent format andencounters a color that lies outside the screen’s color gamut, that function willreturn XcmsFailure.client_dataSpecifies client data for the gamut compression procedure or NULL.The XcmsSetCompressionProc function first sets the gamut compression procedure and client103

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!