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.

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

dlpdfimagecreatefrombmp (DLPDFDOC *Doc,<br />

char *ImageName, char *Image, long ImageSize, long<br />

Width, Long Depth, int bpc, CosObj ColorSpace, int InLine)<br />

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

Return Value: DLPDFIMAGE*<br />

Description<br />

Parameters<br />

Return Value<br />

Creates an image from a bitmap. The map is<br />

considered to be scanned left to right <strong>and</strong> top to<br />

bottom.<br />

• DLPDFDOC *Doc represents the document<br />

structure <strong>and</strong> the current status of the<br />

document at all times.<br />

• char *ImageName: Image name string<br />

• char *Image: Pointer to the image raster<br />

data<br />

• long ImageSize in bytes. Should be equal<br />

to ((Width*Depth*BitsPerComponent)/<br />

8)*CompPerPixel. Components per pixel<br />

is derived from ColorSpace.<br />

• long Width in pixels<br />

• Long Depth in pixels<br />

• int bpc<br />

• CosObj ColorSpace: this should be the<br />

color space name as a COS structure<br />

(/DeviceGray, /DeviceRGB or<br />

/DeviceCMYK, which have 1, 3, <strong>and</strong> 4<br />

components per pixel respectively), a<br />

CosNull structure (if this is a 1BPP, onechannel<br />

bitmap to be placed as an<br />

imagemask), or an indexed color space<br />

structure which has one component per pixel.<br />

• int InLine: A flag which when TRUE will<br />

embed this structure in the document each<br />

time it is used. When FALSE, it will be<br />

embedded only once.<br />

DLPDFIMAGE*<br />

Exceptions<br />

Header<br />

dli.h

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

Saved successfully!

Ooh no, something went wrong!