←Select platform

Bounds Property

Summary
Gets or sets the word coordinates in pixels.
Syntax
C#
VB
Objective-C
C++
Java
public LeadRect Bounds { get; set; } 
Public Property Bounds As LeadRect 
@property (nonatomic, assign) LeadRect bounds 
public LeadRect getBounds() 
public void setBounds(LeadRect value) 
public: 
property LeadRect Bounds { 
   LeadRect get(); 
   void set (    LeadRect ); 
} 

Property Value

A LeadRect containing the word coordinates in pixels.

Remarks

You can get the recognized words of a zone with the IOcrZoneCharacters.GetWords method. This is a helper method that iterate through the OcrCharacter collection of the zone and constructs the words based on the OcrCharacter.Position flags.

The word coordinates is the sum of the coordinates of the characters (OcrCharacter.Bounds) from FirstCharacterIndex to LastCharacterIndex into the IOcrZoneCharacters collection.

The unit of this LeadRect is pixels.

Example

For an example, refer to IOcrPage.GetRecognizedCharacters.

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ocr Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.