BitmapFormOverlay

#include "BITIFF.H"

HBITMAP CALLBACK BitmapFormOverlay( LPTSTR                 tiffFileName,
                                                                             LPFAXTOASCII  textFile)

Description

This function is designed for text retrieval applications to overlay scanned form images. It overlays a form with ASCII text in a transparent mode. The user can set the page width, length, margins and dot per inch resolution of the page. Also, the font characteristics like typeface, point size, bold, italic, tab stops and line spacing can be set. The measurements can be in 100ths of an inch or in millimeters. The default is in inches. When text is loaded, the function will process Carriage Return CR and Line Feed LF. If text reaches the margin, a line feed will be inserted. So it will continue on next line. For details see the appendix on the LPFAXTOASCII data structure.

Parameters

LPTSTR

tiffFileName

The form in the TIFF file format.

LPFAXTOASCII

textFile

The data structure to format text.

Additional Information

This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.

Return values

Handle of the BITMAP. NULL on error.

Programming notes

The user is responsible for freeing the bitmap GDI objects by calling the MS Windows SDK DeleteObject(). 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.

Requirements

Header :     Declared in BiTiff.h; include BiTiff.h.

Library :    Use BiTIFF.lib.

DLLs :       BiTiff.dll.