PrintDIBExt Method

Description         Prints a device independent bitmap.

Syntax                 RetVal = [BIPrint.]PrintDIBExt  Wnd ImgName Dib iScaleX1 iScaleX2 iScaleY1 iSacleY2 NumCopies Display CenterVertImg CenterHorizImg ScalePage ConvertCtoB StretchPage AllPage UseDPI NotDispCancel

Returns               RetVal                    Integer             It is zero on success or error code on error.

Remarks             Wnd                       LONGLONG Window handle for the dialog boxes.

                            ImgName               String              A capture text to print.

                            Dib                          LONGLONG Device independent bitmap to print.

                             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            Integer             The number of copies to be printed.

                            Display                   Boolean           Display the Print dialog box.

                            CenterVertImg      Boolean           Center the image vertically on the printer.

                            CenterHorizImg    Boolean           Center the image horizontally on the printer.

                            ScalePage               Boolean           Scale image to fit proportionally.

                            ConvertCtoB         Boolean           Convert bitmap to monochrome.

                            StretchPage           Boolean           Stretch bitmap to fit in a page.

                            AllPage                   Boolean           Print all page of a tiff file.

                            UseDPI                   Boolean           Use DPI settings.

                            NotDispCancel      Boolean           Not to display the Cancel Printing dialog box.

Usage                  The PrintDIB method includes the PrepareToPrint, PrintDIBPage and EndPrint method calls.

See Also              PrepareToPrint Method, PrintDIBPage Method, EndPrint Method