ECodedImage2::DrawObject
Draw the designated object.
Namespace: Euresys::Open_eVision
[C++]
void DrawObject(
EDrawAdapter* graphicContext,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
void DrawObject(
EDrawAdapter* graphicContext,
OEV_UINT32 layerIndex,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
void DrawObject(
HDC graphicContext,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
void DrawObject(
HDC graphicContext,
const ERGBColor& color,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
void DrawObject(
HDC graphicContext,
OEV_UINT32 layerIndex,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
void DrawObject(
HDC graphicContext,
const ERGBColor& color,
OEV_UINT32 layerIndex,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
Parameters
graphicContext
Graphic context on which to draw.
objectIndex
Index of the object to draw.
zoomX
Horizontal zooming factor. By default, no scaling is used.
zoomY
Vertical zooming factor. If set to
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. The current pen is used.
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.
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.ECodedImage2.DrawObject
Draw the designated object.
Namespace: Euresys.Open_eVision
[C#]
void DrawObject(
Euresys.Open_eVision.EDrawAdapter graphicContext,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
void DrawObject(
Euresys.Open_eVision.EDrawAdapter graphicContext,
uint layerIndex,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
void DrawObject(
IntPtr graphicContext,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
void DrawObject(
IntPtr graphicContext,
Euresys.Open_eVision.ERGBColor color,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
void DrawObject(
IntPtr graphicContext,
uint layerIndex,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
void DrawObject(
IntPtr graphicContext,
Euresys.Open_eVision.ERGBColor color,
uint layerIndex,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY
)
Parameters
graphicContext
Graphic context on which to draw.
objectIndex
Index of the object to draw.
zoomX
Horizontal zooming factor. By default, no scaling is used.
zoomY
Vertical zooming factor. If set to
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. The current pen is used.
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.
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.