GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureOCR Class / MaxCharWidth Property
Example





In This Topic
MaxCharWidth Property (GdPictureOCR)
In This Topic
Specifies the maximal accepted width, in pixels, for each recognized character.
Syntax
'Declaration
 
Public Property MaxCharWidth As Integer
public int MaxCharWidth {get; set;}
public read-write property MaxCharWidth: Integer; 
public function get,set MaxCharWidth : int
public: __property int get_MaxCharWidth();
public: __property void set_MaxCharWidth( 
   int value
);
public:
property int MaxCharWidth {
   int get();
   void set (    int value);
}

Property Value

The default valus is 0, means no limit is used.
Example
How to define the required maximal width of a recognized character.
Using gdpictureOCR As GdPictureOCR = New GdPictureOCR()
 
    gdpictureOCR.MaxCharWidth = 10
 
    'You can do your another stuff with gdpictureOCR here.
End Using
using (GdPictureOCR gdpictureOCR = new GdPictureOCR())
{
    gdpictureOCR.MaxCharWidth = 10;
 
    //You can do your another stuff with gdpictureOCR here.
}
See Also