BiPrintImageExt

#include "BIADVPRN.H"

 

int CALLBACK BiPrintImageExt( HDC        hDC,
HDIB      hDIB,
LPRECT  pRect,
BYTE      bUnits
)

Description

This function prints a DIB at the specified position and with the specified size. The input lpRect parameter contains the Top-Left and Bottom-Right coordinates of the desired printed image. The position and size can be specified in pixels, tens of mm (mm/10) or hundredths of Inches (Inch/100), as set by the bUnits parameter.

Parameters

HDC

hDC

Printer hDC.

HDIB

hDIB

DIB handle.

LPRECT

lpRect

Top-Left and Bottom-Right points of the desired printed image.

 

 

lpRect->left = Top-Left point x coordinate.

 

 

lpRect->top = Top-Left point y coordinate.

 

 

lpRect->right = Bottom-Right point x coordinate.

 

 

lpRect->bottom = Bottom-Right point y coordinate.

BYTE

bUnits

Units of the lpRect values. Can be one of MM_TEXT (pixels), MM_LOMETRIC (mm/10) and MM_LOENGLISH (Inch/100).

Return values

It is zero on success or error code on error.

Requirements

Header :     Declared in BiAdvPrn.h; include BiAdvPrn.h.

Library :    Use BiAdvPrn.lib.

DLLs :       BiAdvPrn.dll.