ECodedImage2::DrawFeature
Draw a given feature of the designated coded element, of all the objects from a layer, or of all the coded elements from a given selection.
Namespace: Euresys::Open_eVision_2_16
[C++]
void DrawFeature(
EDrawAdapter* graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
EDrawAdapter* graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
OEV_UINT32 layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
EDrawAdapter* graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
ECodedElement& element,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
EDrawAdapter* graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
EObjectSelection& selection,
OEV_UINT32 elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
EDrawAdapter* graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
EObjectSelection& selection,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
HDC graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
HDC graphicContext,
const ERGBColor& color,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
HDC graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
OEV_UINT32 layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
HDC graphicContext,
const ERGBColor& color,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
OEV_UINT32 layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
HDC graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
ECodedElement& element,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
HDC graphicContext,
const ERGBColor& color,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
ECodedElement& element,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
HDC graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
EObjectSelection& selection,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
HDC graphicContext,
const ERGBColor& color,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
EObjectSelection& selection,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
HDC graphicContext,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
EObjectSelection& selection,
OEV_UINT32 elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
void DrawFeature(
HDC graphicContext,
const ERGBColor& color,
Euresys::Open_eVision_2_16::EDrawableFeature feature,
EObjectSelection& selection,
OEV_UINT32 elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
BOOL drawDiagonals
)
Parameters
graphicContext
Graphic context on which to draw.
feature
The feature of interest.
zoomX
Horizontal zooming factor. By default, true scale 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
Index of the layer of interest. If no layer index is specified, the default layer is taken into consideration. Note that 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.
element
The coded element to draw.
selection
The selection of coded elements to draw.
elementIndex
The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take 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.
The features EDrawableFeature_FeretBox and EDrawableFeature_WeightedGravityCenter are only at one's disposal when drawing selections.
ECodedImage2.DrawFeature
Draw a given feature of the designated coded element, of all the objects from a layer, or of all the coded elements from a given selection.
Namespace: Euresys.Open_eVision_2_16
[C#]
void DrawFeature(
Euresys.Open_eVision_2_16.EDrawAdapter graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
Euresys.Open_eVision_2_16.EDrawAdapter graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
uint layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
Euresys.Open_eVision_2_16.EDrawAdapter graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
Euresys.Open_eVision_2_16.ECodedElement element,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
Euresys.Open_eVision_2_16.EDrawAdapter graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
Euresys.Open_eVision_2_16.EObjectSelection selection,
uint elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
Euresys.Open_eVision_2_16.EDrawAdapter graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
Euresys.Open_eVision_2_16.EObjectSelection selection,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.ERGBColor color,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
uint layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.ERGBColor color,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
uint layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
Euresys.Open_eVision_2_16.ECodedElement element,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.ERGBColor color,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
Euresys.Open_eVision_2_16.ECodedElement element,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
Euresys.Open_eVision_2_16.EObjectSelection selection,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.ERGBColor color,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
Euresys.Open_eVision_2_16.EObjectSelection selection,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
Euresys.Open_eVision_2_16.EObjectSelection selection,
uint elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
IntPtr graphicContext,
Euresys.Open_eVision_2_16.ERGBColor color,
Euresys.Open_eVision_2_16.EDrawableFeature feature,
Euresys.Open_eVision_2_16.EObjectSelection selection,
uint elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
Parameters
graphicContext
Graphic context on which to draw.
feature
The feature of interest.
zoomX
Horizontal zooming factor. By default, true scale 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
Index of the layer of interest. If no layer index is specified, the default layer is taken into consideration. Note that 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.
element
The coded element to draw.
selection
The selection of coded elements to draw.
elementIndex
The index in the selection of the coded element to draw. If no element index is specified, all the elements of the selection are take 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.
The features FeretBox and WeightedGravityCenter are only at one's disposal when drawing selections.