ECodedImage2::DrawHole

Namespace: Euresys::Open_eVision

[C++]

void DrawHole(
   EDrawAdapter* graphicContext,
   OEV_UINT32 objectIndex,
   OEV_UINT32 holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
) const

void DrawHole(
   EDrawAdapter* graphicContext,
   OEV_UINT32 layerIndex,
   OEV_UINT32 objectIndex,
   OEV_UINT32 holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
) const

[[deprecated("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]]
void DrawHole(
   HDC graphicContext,
   OEV_UINT32 objectIndex,
   OEV_UINT32 holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
) const

[[deprecated("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]]
void DrawHole(
   HDC graphicContext,
   const ERGBColor& color,
   OEV_UINT32 objectIndex,
   OEV_UINT32 holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
) const

[[deprecated("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]]
void DrawHole(
   HDC graphicContext,
   OEV_UINT32 layerIndex,
   OEV_UINT32 objectIndex,
   OEV_UINT32 holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
) const

[[deprecated("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]]
void DrawHole(
   HDC graphicContext,
   const ERGBColor& color,
   OEV_UINT32 layerIndex,
   OEV_UINT32 objectIndex,
   OEV_UINT32 holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
) const

Parameters

graphicContext

Graphic context on which to draw.

objectIndex

holeIndex

Index of the hole to draw.

zoomX

Horizontal zooming factor. By default, no scaling 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.

layerIndex

The index of the layer A binary image constructed by a segmentation process. of interest. If this parameter is left unspecified, the default layer will be taken into consideration.

color

The color in which to draw the overlay.

Remarks

Drawing is done in the device context associated to the desired window.

This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.

ECodedImage2.DrawHole

Draw the designated hole.

Namespace: Euresys.Open_eVision

[C#]

void DrawHole(
   EDrawAdapter graphicContext,
   uint objectIndex,
   uint holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

void DrawHole(
   EDrawAdapter graphicContext,
   uint layerIndex,
   uint objectIndex,
   uint holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawHole(
   IntPtr graphicContext,
   uint objectIndex,
   uint holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawHole(
   IntPtr graphicContext,
   ERGBColor color,
   uint objectIndex,
   uint holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawHole(
   IntPtr graphicContext,
   uint layerIndex,
   uint objectIndex,
   uint holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawHole(
   IntPtr graphicContext,
   ERGBColor color,
   uint layerIndex,
   uint objectIndex,
   uint holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawHole(
   System.Drawing.Graphics graphicContext,
   uint objectIndex,
   uint holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawHole(
   System.Drawing.Graphics graphicContext,
   ERGBColor color,
   uint objectIndex,
   uint holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawHole(
   System.Drawing.Graphics graphicContext,
   uint layerIndex,
   uint objectIndex,
   uint holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

[Obsolete("Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.")]
void DrawHole(
   System.Drawing.Graphics graphicContext,
   ERGBColor color,
   uint layerIndex,
   uint objectIndex,
   uint holeIndex,
   float zoomX,
   float zoomY,
   float panX,
   float panY
)

Parameters

graphicContext

Graphic context on which to draw.

objectIndex

Index of the parent object of the hole to draw.

holeIndex

Index of the hole to draw.

zoomX

Horizontal zooming factor. By default, no scaling 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.

layerIndex

The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.

color

The color in which to draw the overlay.

Remarks

Drawing is done in the device context associated to the desired window.

This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.

ECodedImage2.DrawHole

Draw the designated hole.

Module: open_evision

[Python]

DrawHole(
    graphicContext: EDrawAdapter
    objectIndex: int
    holeIndex: int
    zoomX: float
    zoomY: float
    panX: float
    panY: float
) -> None

DrawHole(
    graphicContext: EDrawAdapter
    objectIndex: int
    holeIndex: int
    zoomX: float
    zoomY: float
    panX: float
) -> None

DrawHole(
    graphicContext: EDrawAdapter
    objectIndex: int
    holeIndex: int
    zoomX: float
    zoomY: float
) -> None

DrawHole(
    graphicContext: EDrawAdapter
    objectIndex: int
    holeIndex: int
    zoomX: float
) -> None

DrawHole(
    graphicContext: EDrawAdapter
    objectIndex: int
    holeIndex: int
) -> None

DrawHole(
    graphicContext: EDrawAdapter
    layerIndex: int
    objectIndex: int
    holeIndex: int
    zoomX: float
    zoomY: float
    panX: float
    panY: float
) -> None

Parameters

graphicContext

Graphic context on which to draw.

objectIndex

Index of the parent object of the hole to draw.

holeIndex

Index of the hole to draw.

zoomX

Horizontal zooming factor. By default, no scaling 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.

layerIndex

The index of the layer of interest. If this parameter is left unspecified, the default layer will be taken into consideration.

Remarks

Drawing is done in the device context associated to the desired window.

This methods throws an exception if no layer index is specified and if, simultaneously, the coded image contains several layers. Indeed, in such a case, no default layer exists.