Sets the font attributes for text drawn on the redacted image.
|
Copy Code
|
|
|---|---|
AT_ERRCOUNT ACCUAPI IG_REC_redactor_font_set( const HIG_REC_REDACTOR higRecRedactor, const AT_LOGFONT* const lpLogFont ); |
|
| 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. |
This function does not process image pixels.
|
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 ) ;
|
|
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.