EOCR2::HitTestText
Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true and fills the EOCR2Text
object In a general content, the term object should be understood with the meaning of a class instance. In EasyObject, an object is a maximally-sized area of adjacent connected pixels belonging to the layer foreground. passed as parameter.
Namespace: Euresys::Open_eVision
[C++]
bool HitTestText(
EOCR2Text
& text,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY
)
bool HitTestText(
EOCR2Text
& text,
int x,
int y,
float zoomX,
float zoomY,
float panX
)
bool HitTestText(
EOCR2Text
& text,
int x,
int y,
float zoomX,
float zoomY
)
bool HitTestText(
EOCR2Text
& text,
int x,
int y,
float zoomX
)
bool HitTestText(
EOCR2Text
& text,
int x,
int y
)
Parameters
text
Object to fill if a text was detected under the cursor.
x
Horizontal position of the cursor.
y
Vertical position of the cursor.
zoomX
Horizontal zooming factor. By default, true scale is used.
zoomY
Vertical zooming factor. If set to 0
(default), 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.
EOCR2.HitTestText
Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true and fills the EOCR2Text
object passed as parameter.
Namespace: Euresys.Open_eVision
[C#]
bool HitTestText(
EOCR2Text
text,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY
)
bool HitTestText(
EOCR2Text
text,
int x,
int y,
float zoomX,
float zoomY,
float panX
)
bool HitTestText(
EOCR2Text
text,
int x,
int y,
float zoomX,
float zoomY
)
bool HitTestText(
EOCR2Text
text,
int x,
int y,
float zoomX
)
bool HitTestText(
EOCR2Text
text,
int x,
int y
)
Parameters
text
Object to fill if a text was detected under the cursor.
x
Horizontal position of the cursor.
y
Vertical position of the cursor.
zoomX
Horizontal zooming factor. By default, true scale is used.
zoomY
Vertical zooming factor. If set to 0
(default), 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.
EOCR2.HitTestText
Tests the cursor position for the presence of a text. If one is present under the cursor, it returns true and fills the EOCR2Text
object passed as parameter.
Module: open_evision
[Python]
HitTestText(
text: EOCR2Text
x: int
y: int
zoomX: float
zoomY: float
panX: float
panY: float
) -> bool
HitTestText(
text: EOCR2Text
x: int
y: int
zoomX: float
zoomY: float
panX: float
) -> bool
HitTestText(
text: EOCR2Text
x: int
y: int
zoomX: float
zoomY: float
) -> bool
HitTestText(
text: EOCR2Text
x: int
y: int
zoomX: float
) -> bool
HitTestText(
text: EOCR2Text
x: int
y: int
) -> bool
Parameters
text
Object to fill if a text was detected under the cursor.
x
Horizontal position of the cursor.
y
Vertical position of the cursor.
zoomX
Horizontal zooming factor. By default, true scale is used.
zoomY
Vertical zooming factor. If set to 0
(default), 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.