←Select platform

Bounds Property

Summary

Gets or sets the word coordinates in pixels.

Syntax

C#
VB
Java
Objective-C
C++
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 20.0.2018.1.18
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ocr Assembly