EOCR::HitChars

Returns true if the cursor is placed over a character and sets the charIndex accordingly.

Namespace: Euresys::Open_eVision

[C++]

bool HitChars(
   int cursorX,
   int cursorY,
   OEV_UINT32& charIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

Parameters

cursorX

Current cursor coordinates.

cursorY

Current cursor coordinates.

charIndex

Index of the character hit.

zoomX

Horizontal zooming factor. By default, true scale is used.

zoomY

Vertical zooming factor. If set to 0, the default value, the horizontal zooming factor is used instead, so as to provide isotropic zooming.

panX

Horizontal panning value expressed in pixels. By default, no panning occurs.

panY

Vertical panning value expressed in pixels. By default, no panning occurs.

Remarks

If zooming and/or panning were used when drawing the ROI, the same values must be used with EOCR::HitChars.

EOCR.HitChars

Returns true if the cursor is placed over a character and sets the charIndex accordingly.

Namespace: Euresys.Open_eVision

[C#]

bool HitChars(
   int cursorX,
   int cursorY,
   out uint charIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

Parameters

cursorX

Current cursor coordinates.

cursorY

Current cursor coordinates.

charIndex

Index of the character hit.

zoomX

Horizontal zooming factor. By default, true scale is used.

zoomY

Vertical zooming factor. If set to 0, the default value, the horizontal zooming factor is used instead, so as to provide isotropic zooming.

panX

Horizontal panning value expressed in pixels. By default, no panning occurs.

panY

Vertical panning value expressed in pixels. By default, no panning occurs.

Remarks

If zooming and/or panning were used when drawing the ROI, the same values must be used with EOCR::HitChars.