#include "BITIFF.H"
HANDLE CALLBACK DIBFormOverlay( 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. It will continue on the next line. For details see the appendix on the LPFAXTOASCII data structure.
Parameters
|
LPTSTR |
tiffFileName |
The form in 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 device independent bitmap (DIB). NULL on error.
Programming notes
The user is responsible for freeing the DIB by calling the MS Windows SDK GlobalFree(). The DIB is NOT a GDI object! 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.