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.4 <strong>DLI</strong> <strong>Implementation</strong> <strong>and</strong> <strong>Reference</strong> <strong>Guide</strong><br />

Color spaces for the basic colors (DeviceRGB, DeviceCMYK <strong>and</strong> DeviceGray) are<br />

created by a call to the Adobe PDF Library in this form:<br />

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

"C " Example: Creating a Gray Color Space<br />

PDEColorSpace GrayModel:<br />

AsAtom GrayAtom;<br />

GrayAtom = ASAtomFromName (“DeviceGray”);<br />

GrayModel = PDEColorSpaceCreateFromName (GrayAtom);<br />

"BAL" Example: Creating A Gray Color Space<br />

In Assembler for OS/390:<br />

GrCol @DLPDFS<br />

DSECT=NO, *<br />

STRUCT=__T_PDECOLORVALUE<br />

GrName ds A“GrayScale”<br />

GrAtom dc h’0’<br />

@DLPDFC<br />

DLFUNC=AsAtomFromEBCDICName,<br />

DLPARAM=(GrName),<br />

DLRETURN=GrAtom<br />

DLPDFC<br />

DLFUNC=pdecolorspacecreatefromname,<br />

dlparam1=(GrAtom),<br />

DLRETURN=GrCol

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

Saved successfully!

Ooh no, something went wrong!