ECodedImage2::DrawObjectFeature
Draw a given feature of the designated object.
Namespace: Euresys::Open_eVision_2_16
[C++]
void DrawObjectFeature(
EDrawAdapter* graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawObjectFeature(
EDrawAdapter* graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
OEV_UINT32 layerIndex,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawObjectFeature(
HDC graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawObjectFeature(
HDC graphicContext,
const ERGBColor& color,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawObjectFeature(
HDC graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
OEV_UINT32 layerIndex,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawObjectFeature(
HDC graphicContext,
const ERGBColor& color,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
OEV_UINT32 layerIndex,
OEV_UINT32 objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
Parameters
graphicContext
Graphic context on which to draw.
feature
The feature of interest.
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.
drawDiagonals
Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn.
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.
Trying to draw the features EDrawableFeature_FeretBox and EDrawableFeature_WeightedGravityCenter will result in an exception, as they only make sense for EObjectSelection.
ECodedImage2.DrawObjectFeature
Draw a given feature of the designated object.
Namespace: Euresys.Open_eVision_2_16
[C#]
void DrawObjectFeature(
Euresys.Open_eVision_2_16.EDrawAdapter graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawObjectFeature(
Euresys.Open_eVision_2_16.EDrawAdapter graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
uint layerIndex,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawObjectFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawObjectFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.ERGBColor color,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawObjectFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
uint layerIndex,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawObjectFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.ERGBColor color,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
uint layerIndex,
uint objectIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
Parameters
graphicContext
Graphic context on which to draw.
feature
The feature of interest.
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.
drawDiagonals
Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn.
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.
Trying to draw the features FeretBox and WeightedGravityCenter will result in an exception, as they only make sense for EObjectSelection.