This function prints the specified image or portion thereof on the printer at the specified location and size.
|
Parameter |
Type |
Description |
|
hImage |
HANDLE |
Identifies the Image to be displayed. |
|
hPrnDC |
HDC |
Identifies the device context for the printer. |
|
lpDestRect |
LPRECT |
Points to a RECT data structure containing the area on the printer in which the image will be printed. |
|
lpSrcRect |
LPRECT |
Points to a RECT data structure containing the coordinates of the portion of the source image which should be printed. |
Return Value
The return value indicates whether the image was printed successfully. It is nonzero if the image was printed successfully. Otherwise, it is zero.
Comments
If lpSrcRect is NULL then the entire image will be displayed in the area specified by the RECT pointed to by lpDestRect.
Note that raster images cannot be printed on vector devices such as plotters. If you attempt to print a raster image on a vector device ImageMan will return the IMG_BAD_PRN error code.
© 1995-2004 Data Techniques, Inc. All rights reserved.