22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

12.4 <strong>DLI</strong> <strong>Implementation</strong> <strong>and</strong> <strong>Reference</strong> <strong>Guide</strong><br />

Color Space Creation<br />

For Adobe PDF Library v4.0 <strong>and</strong> higher, all of the color spaces may be created by the procedure<br />

PDEColorSpaceCreate.<br />

NOTE: A COS object is a document object, <strong>and</strong> cannot be shared between<br />

documents. However, the PDEColorSpace created from a document-specific<br />

COS Object is not a document object, <strong>and</strong> may be shared.<br />

For example, to create a Calibrated Gray Scale color space, you would need the following code fragment:<br />

Creating Calgray Color Space for Adobe PDF Library v4.0 <strong>and</strong> later<br />

PDEColorSpace CIEGrey;<br />

PDEGrayCalFlt CIEGreyDesc;<br />

CIEGreyDesc.gamma = 0;<br />

CIEGreyDesc.whitePoint.x = 0.9506;<br />

CIEGreyDesc.whitePoint.y = 1.0;<br />

CIEGreyDesc.whitePoint.z = 1.0890;<br />

CIEGreyDEsc.blackPoint.x = 0.0;<br />

CIEGreyDEsc.blackPoint.y = 0.0;<br />

CIEGreyDesc.blakcPoint.z = 0.0;<br />

CIEGrey = CreateColorSpace (AsAtomFromName (“CalGray”),<br />

(PDEColorSpaceStruct *)&CIEGreyDesc);

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

Saved successfully!

Ooh no, something went wrong!