ImageGear for C and C++ on Windows v19.0
IG_REC_redactor_font_set

Sets the font attributes for text drawn on the redacted image.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_REC_redactor_font_set(
   const HIG_REC_REDACTOR higRecRedactor,
   const AT_LOGFONT* const  lpLogFont
);

Arguments:

Name Type Description
higRecRedactor const HIG_REC_REDACTOR The handle to a redactor instance.
lpLogFont const AT_LOGFONT* const The pointer to readable memory that contains a logical font attribute structure to copy.

Return Value:

The number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

This function does not process image pixels.

Example:

 
Copy Code
AT_ERRCOUNT errCount = 0 ;
HIG_REC_REDACTOR higRedactor = 0 ;
AT_LOGFONT logical_font = {0} ;
logical_font.lfHeight = 16 ; // px
logical_font.lfWeight = 700 ; // bold
logical_font.lfCharSet = ANSI_CHARSET ; // United States
logical_font.lfQuality = ANTIALIASED_QUALITY ;
logical_font.lfPitchAndFamily = DEFAULT_PITCH | FF_DONTCARE ;
strcpy( logical_font.lfFaceName , "Tahoma" ) ;

IG_REC_redactor_create( &higRedactor ) ;
errCount = IG_REC_redactor_font_set 
                          ( higRedactor, 
                            &logical_font
                          ) ;
IG_REC_redactor_delete( higRedactor ) ;

Remarks:

The font attributes for replacement text drawn on the source image within a match result bounding box.

The default value is NULL.

If NULL is specified, then the redactor will default to the font attributes for the default system font.

See Also

HIG_REC_REDACTOR

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback