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.

Image Display 11.13<br />

from the image's dictionary. (This can be accomplished through the cosImage<br />

member of the DLPDFIMAGE structure.) If the imagemask is to be placed over an<br />

image, it need not be the same size or resolution as any of the images it masks; in fact,<br />

the use of an imagemask of significantly higher resolution than the image to be<br />

masked is a useful way to simulate gradations of transparency.<br />

Transparent Graphics via Imagemasks Sample<br />

In an accompanying /codesamples folder you should find a sample file entitled<br />

creating transparent graphics using imagemasks.txt. This<br />

demonstrates how to create a mask from a suitable graphic which is approximately 11<br />

times as wide <strong>and</strong> high as the image to be masked.<br />

NOTE: The files in the /Codesamples folder are not intended to be buildable<br />

source as-is, only to be demonstrations of correct comm<strong>and</strong> syntax for different<br />

purposes.<br />

dlpdfcontentgstate<br />

This method enables a user to set a graphics state in a PDF file, for graphics<br />

operations which normally have no such state associated with them.<br />

For example, when creating an imagemask to create a green mask, an appropriate<br />

color <strong>and</strong> colorspace must be specified. Thus dlpdfcontentgstate is called to set<br />

the graphics state of the specified DLPDFCONTENT to that of the PDEGraphicState.<br />

This may be done at any point during content placement operations.

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

Saved successfully!

Ooh no, something went wrong!