DIBFormOverlay  Method

Description         Returns a form overlayed image.

Syntax                 Dib = [BITIFF.]DIBFormOverlay TiffFileName TextFileName PageWidth PageLength Xmargin Ymargin TypeFace FontPointSize XDPI YDPI LineSpace TabArray Flags

Remarks             Dib                          LONGLONG The overlayed device independent bitmap. 0 if error occurred.

                            TiffFileName         String              Name of a Tiff format file.

                            TextFileName        String              Name of an ASCII text file. The file must not be longer than 65535 bytes.

                            PageWidth             Integer             The page width is defined in 100 of an inch. An 8 1/2 inch page will be 850.

                            PageLength           Integer             The page length is defined in 100 of an inch. An11 inch page should be 1100.

                            Xmargin                 Integer             The left and right margin on a page is defined in 100 of an inch. A 1/2 inch margin should be 50. On an 8 1/2 page a half inch margin should leave a 7 1/2 inch client area. Range must be in the page size limits.

                            Ymargin                 Integer             The top and bottom margin is defined in 100 of an inch. A 1/2 inch margin should be 50. On an 11 inch page a half inch margin should leave a 10 inch client area. Range must be in the page size limits.

                            TypeFace               String              The type face string.

                            FontPointSize        Integer             The font size in points. The range should be 6 to 72 points.

                            XDPI                      Integer             Horizontal DPI resolution of bitmap. Range should be 50 - 600 DPI.

                            YDPI                      Integer             Vertical DPI resolution of bitmap. Range should be 50 - 600 DPI.

                            LineSpace              Integer             Distance between two lines.

                            TabArray              Integer             The tab stops. Maximum of 15. You should pass the first item of an array to this parameter. The first zero value in the array indicates that there are no more tabs.

                            Flags                       Long                This can be any combination of the following values, except the tifafMeasureInch and tifafMeasureMeter flags:

                                                                  tifafTextBold = 4                   The entire text is bold.

                                                                  tifafTextItalic = 2                  The entire text is italic.

                                                                  tifafMeasureInch = 1            The measurement is in inch (default).

                                                                  tifafMeasureMeter = 8         The measurement is in millimeter.

 

This method is designed for text retrieval application to overlay scanned form image. It overlays a form with ASCII text in a transparent mode. The form is a black and white TIFF file. The overlay will start from the top left corner of the image. The carriage return and line feed is used to advance to a new line on the form.

The image should have valid dot per inch resolution (DPI). The Image DPI will be used to scale the font size to get a proportional view.

See Also              CreateDIBFaxPageFromASCII Method