Declaration
function IEVisionRect(x, y, width, height: int32_t): TIEVisionRect; overload;
function IEVisionRect(rect:TIERectangle): TIEVisionRect; overload;
function IEVisionRect(rect: TRect): TIEVisionRect; overload;
function IEVisionRect(RotateRect: TIEVisionRotatedRect): TIEVisionRect overload;
Description
Returns a 
TIEVisionRect record initialized with specified parameters.
 | Parameter |  Description |  
 | x |  Top-left horizontal coordinate  |  
 | y |  Top-left vertical coordinate  |  
 | width |  Width  |  
 | height |  Height  |  
 
Note: The TIEVisionRotatedRect overload will discard any rotation information
// perform OCR on the selected image region
ocrRect := ImageEnView1.SelectedRect;
memo1.Lines.Text := m_OCR.recognize( ImageEnView1.IEBitmap.GetIEVisionImage(),
                                     IEVisionRect( ocrRect.x, ocrRect.y, ocrRect.width, ocrRect.height )).c_str();
See Also
◼IEVisionRectToTRect