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.

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

dlpdfimagecreatefrombmp<br />

This method creates a DLPDFIMAGE from a bitmap <strong>and</strong> user-supplied information.<br />

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

• Its first parameter is the document of which the image is to be a part.<br />

• Its second parameter is a name to be used to identify this image.<br />

• Its third <strong>and</strong> fourth parameters are pointers to an array of bytes containing the<br />

bitmap <strong>and</strong> the length of that bitmap.<br />

• Its fifth parameter is the length of a line in samples.<br />

• Its sixth parameter is the number of lines.<br />

• Its seventh parameter is the size of a sample.<br />

• The eighth parameter is a COS Object which describes the color model used for the<br />

image.<br />

• The last parameter is a flag. When TRUE, this object will be embedded in the<br />

document each time it is used. When FALSE, it will be embedded only once.<br />

NOTE: <strong>DLI</strong> will merge inline all bitmapped images under 500 bytes. However, if<br />

the image is equal to one bitmap, then <strong>DLI</strong> will automatically set the image as an<br />

imagemask. Please see “Creating Transparent Graphics” on page 11.12<br />

This method assumes that the bitmap is ordered into samples within lines, that the<br />

first line presented is the top of the image, <strong>and</strong> that the first sample presented is the<br />

left edge of the image.<br />

Order of Values within Color Models<br />

The type of color model will determine whether the image contains one value per<br />

sample (/DeviceGray or /Indexed color models), three values per sample<br />

(/DeviceRGB), or four values per sample (/DeviceCMYK).<br />

Each value is assumed to have the number of bits specified in the sample size. For<br />

/DeviceRGB they are assumed to be ordered Red/Green/Blue; for /DeviceCMYK<br />

they are assumed to be ordered Cyan/Magenta/Yellow/Black.

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

Saved successfully!

Ooh no, something went wrong!