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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Library Color Descriptions<br />

Concepts <strong>and</strong> Facilities: <strong>Guide</strong> to the DL Pager Composition System<br />

Color can be added to pages produced via <strong>DLI</strong> only with the color fields of the<br />

PDEGraphicState. There are two fields which establish color:<br />

• strokeColorSpec<br />

• fillColorSpec<br />

strokeColorSpec defines the color that applied to lines which are stroked <strong>and</strong><br />

fillColorSpec defines the color applied to areas which are filled.<br />

NOTE: Type is generally filled rather than stroked.<br />

Color Description Components<br />

The color description consists of two components:<br />

• The first is a pointer to a PDEColorSpace structure, which describes a color<br />

space. This identifies the type of color: Black <strong>and</strong> White, RGB, CMYK, etc.<br />

• The second component is an array of from one to seven ASFixed values, which<br />

describe the amount of color in each of the components of the given color model.<br />

These components are frequently called color channels. For example, the color<br />

Black can be described variously as (RGB, 0.0, 0.0, 0.0), (grayScale,<br />

0.0) or (CMYK 0.0, 0.0, 0.0, 1.0); all are different ways of saying<br />

“Black.”<br />

Patterned Colors<br />

Patterned colors, which may be used in addition to (or instead of) a solid color, are<br />

carried in a separate field within the DLPDFCONTENT structure, <strong>and</strong> are set with a<br />

specific set of calls to DLPDFCONTENT.

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

Saved successfully!

Ooh no, something went wrong!