EOCR::DrawChar

Draws the bounding box of a given character.

Namespace: Euresys::Open_eVision

[C++]

void DrawChar(
   EDrawAdapter* graphicContext,
   OEV_UINT32 charIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

void DrawChar(
   HDC graphicContext,
   OEV_UINT32 charIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

void DrawChar(
   HDC graphicContext,
   const ERGBColor& color,
   OEV_UINT32 charIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

Parameters

graphicContext

Handle of the device context on which to draw.

charIndex

Character index, in range 0..NumChars-1.

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.

color

The color in which to draw the overlay.

Remarks

Drawing is done in the device context associated to the desired window. The current pen is used. Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a EDrawAdapter by using a instance of EWindowsDrawAdapter.

EOCR.DrawChar

Draws the bounding box of a given character.

Namespace: Euresys.Open_eVision

[C#]

void DrawChar(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   uint charIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

void DrawChar(
   IntPtr graphicContext,
   uint charIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

void DrawChar(
   IntPtr graphicContext,
   Euresys.Open_eVision.ERGBColor color,
   uint charIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

Parameters

graphicContext

Handle of the device context on which to draw.

charIndex

Character index, in range 0..NumChars-1.

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.

color

The color in which to draw the overlay.

Remarks

Drawing is done in the device context associated to the desired window. The current pen is used. Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a EDrawAdapter by using a instance of EWindowsDrawAdapter.