FILETXTOPTIONS

typedef struct _FILETXTOPTIONS
{
   L_UINT uStructSize;
   L_BOOL bEnabled;
   L_DOUBLE dTopMarg;
   L_DOUBLE dBottomMarg;
   L_DOUBLE dRightMarg;
   L_DOUBLE dLeftMarg;
   L_DOUBLE dPaperWidth;
   L_DOUBLE dPaperHeight;
   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_BOOL bUseSystemLocale;
   L_COLORREF crBackColor;
} FILETXTOPTIONS, * pFILETXTOPTIONS;

The FILETXTOPTIONS structure provides information on loading TXT files in LEADTOOLS.

Member

Description

uStructSize

Size of the structure. This must be set before passing this structure to the LEAD functions. Use the sizeof(FILETXTOPTIONS) macro to calculate this value.

bEnabled

Flag that indicates whether to call the filter.

 

Value

Meaning

 

TRUE

Call the filter.

 

FALSE

Don't call the filter.

dTopMarg

The width of the top margin.

dBottomMarg

The width of the bottom margin.

dRightMarg

The width of the right margin.

dLeftMarg

The width of the left margin.

dPaperWidth

The width of the paper.

dPaperHeight

The height of the paper.

crFontColor

The font color.

crHighlight

The high light color.

nFontSize

The font size.

szFaceName

Character string that contains the text font face name.

bBold

Flag that indicates whether to display the text as bold.

 

Value

Meaning

 

TRUE

Displays the text as bold.

 

FALSE

Displays the text as not bold.

bItalic

Flag that indicates whether to display the text as italic.

 

Value

Meaning

 

TRUE

Displays the text as italic.

 

FALSE

Displays the text as not italic.

bUnderLine

Flag that indicates whether to display the text underlined.

 

Value

Meaning

 

TRUE

Displays the text underlined.

 

FALSE

Displays the text as not underlined.

bStrikeThrough

Flag that indicates whether to display the text with a strikethrough.

 

Value

Meaning

 

TRUE

Displays the text with a strikethrough.

 

FALSE

Displays the text without a strikethrough.

bUseSystemLocale

Flag that indicates whether to use the system's current locale setting when loading TEXT files.

 

Value

Meaning

 

TRUE

System's current locale setting will be used. The toolkit will use the local code page used when loading the TEXT files.

For more information about code pages and locale setting, refer the Windows SDK documentation.

 

FALSE

ANSI encoding will be used.  This is the default value.

crBackColor

The background color. Background is the color used to fill the result image before rending the text on top of it.

Comments

pFILETXTOPTIONS is a pointer to a FILETXTOPTIONS structure.

The following functions make use of this structure:

LFileSettings::GetTXTOptions

LFileSettings::SetTXTOptions