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.

<strong>DLI</strong> <strong>Reference</strong> <strong>Guide</strong> A.25<br />

Technical Notes<br />

1 The image will be placed so as to align its lower left h<strong>and</strong> corner with the given<br />

(X,Y) location, scaled as per ScaleX <strong>and</strong> ScaleY, <strong>and</strong> rotated as per Rotate.<br />

2 Image rotation, if any, always occurs about its origin, typically the lower-left<br />

corner of the image, <strong>and</strong> the point of rotation is located by the given (X,Y)<br />

location.<br />

3 The Scale Factors will determine the resulting size of the image. You need to know<br />

the original image resolution <strong>and</strong> its intended size in order to determine whether a<br />

Scale Factor on either axis is required. In <strong>DLI</strong> v2.2.5 or higher, the<br />

dlpdfimagegetsize method can retrieve image sizing data for you, <strong>and</strong><br />

dividing the intended print size by the file size for each dimension (delivered by<br />

dlpdfimagegetsize) will yield a Scale Factor ratio which<br />

dlpdfcontentreferenceimage uses to calculate the final output image size.<br />

4 The typical scaling calculation using values returned by dlpdfimagegetsize<br />

would be to divide the intended print size by the image size on each axis (e.g.<br />

"dlpdfcontentreferenceimage(Content, Image,<br />

Int32ToFixed(72), Int32ToFixed(92), 0,<br />

ASFixedDiv(xPoints,Int32ToFixed(xRasters)),<br />

ASFixedDiv(yPoints,Int32ToFixed(yRasters)));").<br />

5 An image in which each pixel of each raster line represents one PDF unit of output<br />

will return the same values for both image dimension (xRasters <strong>and</strong> yRasters)<br />

<strong>and</strong> print size (xPoints <strong>and</strong> yPoints), <strong>and</strong> thus a Scale Factor of 1 on both<br />

axes.

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

Saved successfully!

Ooh no, something went wrong!