typedef struct _FILETXTOPTIONS
{
L_UINT uStructSize;
L_BOOL bEnabled;
L_COLORREF crFontColor;
L_COLORREF crHighlight;
L_INT nFontSize;
L_TCHAR szFaceName[LF_FACESIZE];
L_BOOL bBold;
L_BOOL bItalic;
L_BOOL bUnderLine;
L_BOOL bStrikeThrough;
L_COLORREF crBackColor;
} FILETXTOPTIONS, *pFILETXTOPTIONS;
The FILETXTOPTIONS structure provides information on loading TXT files in LEADTOOLS.
Size of the structure. This must be set before passing this structure to the LEAD functions. Use sizeof(FILETXTOPTIONS) to calculate this value.
Flag that indicates whether to call the filter. Possible values are:
Value | Meaning |
---|---|
TRUE | Call the filter. |
FALSE | Don't call the filter. |
The font color.
The high light color. Highlight is the color used as background for the text paragraphs found in the file. If you do not want to show the highlight color, set its value to the same as crFontColor
or crBackColor
.
The background color. Background is the color used to fill the result image before rending the text on top of it.
The font size in points.
Character string that contains the text font face name.
Flag that indicates whether to display the text as bold. Possible values are:
Value | Meaning |
---|---|
TRUE | Displays the text as bold. |
FALSE | Displays the text as not bold. |
Flag that indicates whether to display the text as italic. Possible values are:
Value | Meaning |
---|---|
TRUE | Displays the text as italic. |
FALSE | Displays the text as not italic. |
Flag that indicates whether to display the text underlined. Possible values are:
Value | Meaning |
---|---|
TRUE | Displays the text underlined. |
FALSE | Displays the text as not underlined. |
Flag that indicates whether to display the text with a strikethrough. Possible values are:
Value | Meaning |
---|---|
TRUE | Displays the text with a strikethrough. |
FALSE | Displays the text without a strikethrough. |
pFILETXTOPTIONS
is a pointer to a FILETXTOPTIONS structure.
Text files have no physical width or height in pixels. You can use RASTERIZEDOCOPTIONS to control how the final document is rendered as a raster image. For more information, refer to RASTERIZEDOCOPTIONS.
The structure is used by:
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document