#include "BIPRINT.H"
int CALLBACK PrintDIBPage( HANDLE hDIB,
LPPOINT lpptDPI,
LPRECT lprScale,
UNIT PageNo,
int xStart, int yStart)
Description
This function prints a page in a single or multi-page document. Printing will be done according to the setting in the lpPrint parameter in the PrepareToPrint() function. See the GPRINT data structure for more detail. The xStart and yStart parameters are absolute positive values in the Printer DC physical coordinates. For example, if the image is selected to be centered vertically and horizontally and xStart and yStart is set to 5, then the image is shifted 5 units to the bottom right.
Parameters
|
HANDLE |
hDIB |
DIB handle. |
|
LPPOINT |
lpptDPI |
Image DPI, if NULL use screen DPI. |
|
LPRECT |
lpptScale |
Scaling factor for image. |
|
UINT |
PageNo |
Current page number. |
|
int |
xStart |
A positive absolute offset in pixel on the X coordinate on the page to start printing. |
|
int |
yStart |
A positive absolute offset in pixel on the Y coordinate on the page to start printing. |
Return values
It is zero on success or error code on error. If the Error Code < 0 see GetLastError windows API function to get extended error information.
Requirements
Header : Declared in BIPrint.h; include BIPrint.h.
Library : Use BIPrint.lib.
DLLs : BIPrint.dll, BiDIB.dll.