The PrintImage function is obsolete, use PrintImageExt function instead.
Description Prints bitmap on the specified device. The Image will be scaled according to the DPI dot per inch resolution relative to the device resolution. For Code example, if the device is 300 DPI and the image is 100 DPI, the image will stretch to be scaled to the higher resolution device.
Syntax sRet = [BIPrint.]PrintImage Wnd hBm hPal ImgName Scale NumCopies Display CenterVertImg CenterHorizImg ScalePage ConvertCtoB StretchPage AllPage UseDPI NotDispCancel
Remarks sRet short Error code:
tifprOK
tifprDC
tifprRaster
tifprRAPPDC
tifprESC4
tifprESC5
tifprESC6
Wnd LONGLONG Window handle for the DialogBoxes.
Dib LONGLONG Image to print.
hPal LONGLONG Image palette.
ImgName STRING Name of the document shown at printing.
Scale Long* MS Windows RECT data structure for scaling the image in X and Y direction. (Scale.left and Scale.right in X direction and Scale.top and Scale.bottom in Y direction). For example left=1 top=3, right=1, and bottom=1 increases the image by three times in both X and Y direction. You may pass these values in an array to the method (pass the first item of the array), filled in Left, Top, Right, Bottom order.
NumCopies short The number of copies to be printed.
Display BOOL Display the Print dialog box.
CenterVertImg BOOL Center the image vertically on the printer.
CenterHorizImg BOOL Center the image horizontally on the printer.
ScalePage BOOL Scale image to fit proportionally.
ConvertCtoB BOOL Convert bitmap to monochrome.
StretchPage BOOL Stretch bitmap to fit in a page.
AllPage BOOL Print all page of a tiff file.
UseDPI BOOL Use DPI settings.
NotDispCancel BOOL Not to display the Cancel Printing dialog box.
See Also