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.]PrintImageExt Wnd hBm hPal ImgName iScaleX1 iScaleX2 iScaleY1 iSacleY2 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.
iScaleX1 Integer Image scaling factor 1 for X axis.
Scaling in X axis = iScaleX1:iScaleX2
1:3 increase the image width by three times.
1:1 keeps image original width.
iScaleX2 Integer Image scaling factor 2 for X axis.
Scaling in X axis = iScaleX1:iScaleX2
1:3 increase the image width by three times.
1:1 keeps image original width.
iScaleY1 Integer Image scaling factor 1 for Y axis.
Scaling in Y axis = iScaleY1:iScaleY2
1:3 increase the image height by three times.
1:1 keeps image original height.
iScaleY2 Integer Image scaling factor 1 for Y axis.
Scaling in Y axis = iScaleY1:iScaleY2
1:3 increase the image height by three times.
1:1 keeps image original height.
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.