#include "BIADVPRN.H"
int CALLBACK BiPrintImage( HDC hDC,
HDIB hDIB,
BYTE bFlag)
Description
This function prints a DIB at (0,0) starting point in bFlag specified mode.
Parameters
|
HDC |
hDC |
Printer hDC. |
|
HDIB |
hDIB |
DIB handle. |
|
BYTE |
bFlag |
Printing mode. Available values: BI_PRINT_SCALE_IMAGE (0): Scales to image to fit page, maintains aspect ratio. BI_PRINT_STRETCH_IMAGE (1): Stretches to image to fit page, does not maintain aspect ratio. BI_PRINT_USE_IMAGE_DPI (2): Prints the image using the image’s DPI. It will produce the original image size (the image needs to have a valid DPI). |
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.