ECodedImage2::DrawFeature
Draw a given feature Geometrical property of a coded element. of the designated coded element An object or a hole., of all the objects from a layer A binary image constructed by a segmentation process., or of all the coded elements from a given selection.
Namespace: Euresys::Open_eVision
[C++]
void DrawFeature(
EDrawAdapter
* graphicContext,
EDrawableFeature
feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
void DrawFeature(
EDrawAdapter
* graphicContext,
EDrawableFeature
feature,
OEV_UINT32 layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
void DrawFeature(
EDrawAdapter
* graphicContext,
EDrawableFeature
feature,
const ECodedElement
& element,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
void DrawFeature(
EDrawAdapter
* graphicContext,
EDrawableFeature
feature,
const EObjectSelection
& selection,
OEV_UINT32 elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
void DrawFeature(
EDrawAdapter
* graphicContext,
EDrawableFeature
feature,
const EObjectSelection
& selection,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawFeature(
HDC graphicContext,
EDrawableFeature
feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawFeature(
HDC graphicContext,
const ERGBColor
& color,
EDrawableFeature
feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawFeature(
HDC graphicContext,
EDrawableFeature
feature,
OEV_UINT32 layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawFeature(
HDC graphicContext,
const ERGBColor
& color,
EDrawableFeature
feature,
OEV_UINT32 layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawFeature(
HDC graphicContext,
EDrawableFeature
feature,
const ECodedElement
& element,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawFeature(
HDC graphicContext,
const ERGBColor
& color,
EDrawableFeature
feature,
const ECodedElement
& element,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawFeature(
HDC graphicContext,
EDrawableFeature
feature,
const EObjectSelection
& selection,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawFeature(
HDC graphicContext,
const ERGBColor
& color,
EDrawableFeature
feature,
const EObjectSelection
& selection,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawFeature(
HDC graphicContext,
EDrawableFeature
feature,
const EObjectSelection
& selection,
OEV_UINT32 elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
[[deprecated("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]]
void DrawFeature(
HDC graphicContext,
const ERGBColor
& color,
EDrawableFeature
feature,
const EObjectSelection
& selection,
OEV_UINT32 elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
) const
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 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.
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
[C#]
void DrawFeature(
EDrawAdapter
graphicContext,
EDrawableFeature
feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
EDrawAdapter
graphicContext,
EDrawableFeature
feature,
uint layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
EDrawAdapter
graphicContext,
EDrawableFeature
feature,
ECodedElement
element,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
EDrawAdapter
graphicContext,
EDrawableFeature
feature,
EObjectSelection
selection,
uint elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
void DrawFeature(
EDrawAdapter
graphicContext,
EDrawableFeature
feature,
EObjectSelection
selection,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
IntPtr graphicContext,
EDrawableFeature
feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
IntPtr graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
IntPtr graphicContext,
EDrawableFeature
feature,
uint layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
IntPtr graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
uint layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
IntPtr graphicContext,
EDrawableFeature
feature,
ECodedElement
element,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
IntPtr graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
ECodedElement
element,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
IntPtr graphicContext,
EDrawableFeature
feature,
EObjectSelection
selection,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
IntPtr graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
EObjectSelection
selection,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
IntPtr graphicContext,
EDrawableFeature
feature,
EObjectSelection
selection,
uint elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
IntPtr graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
EObjectSelection
selection,
uint elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
System.Drawing.Graphics graphicContext,
EDrawableFeature
feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
System.Drawing.Graphics graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
System.Drawing.Graphics graphicContext,
EDrawableFeature
feature,
uint layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
System.Drawing.Graphics graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
uint layerIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
System.Drawing.Graphics graphicContext,
EDrawableFeature
feature,
ECodedElement
element,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
System.Drawing.Graphics graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
ECodedElement
element,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
System.Drawing.Graphics graphicContext,
EDrawableFeature
feature,
EObjectSelection
selection,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
System.Drawing.Graphics graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
EObjectSelection
selection,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
System.Drawing.Graphics graphicContext,
EDrawableFeature
feature,
EObjectSelection
selection,
uint elementIndex,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals
)
[Obsolete("Use the overload taking an EDrawAdapter
by using an instance of EWindowsDrawAdapter
.")]
void DrawFeature(
System.Drawing.Graphics graphicContext,
ERGBColor
color,
EDrawableFeature
feature,
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 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.
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.
Module: open_evision
[Python]
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
zoomX: float
zoomY: float
panX: float
panY: float
drawDiagonals: bool
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
zoomX: float
zoomY: float
panX: float
panY: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
zoomX: float
zoomY: float
panX: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
zoomX: float
zoomY: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
zoomX: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
layerIndex: int
zoomX: float
zoomY: float
panX: float
panY: float
drawDiagonals: bool
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
layerIndex: int
zoomX: float
zoomY: float
panX: float
panY: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
element: ECodedElement
zoomX: float
zoomY: float
panX: float
panY: float
drawDiagonals: bool
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
element: ECodedElement
zoomX: float
zoomY: float
panX: float
panY: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
element: ECodedElement
zoomX: float
zoomY: float
panX: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
element: ECodedElement
zoomX: float
zoomY: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
element: ECodedElement
zoomX: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
element: ECodedElement
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
selection: EObjectSelection
elementIndex: int
zoomX: float
zoomY: float
panX: float
panY: float
drawDiagonals: bool
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
selection: EObjectSelection
zoomX: float
zoomY: float
panX: float
panY: float
drawDiagonals: bool
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
selection: EObjectSelection
zoomX: float
zoomY: float
panX: float
panY: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
selection: EObjectSelection
zoomX: float
zoomY: float
panX: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
selection: EObjectSelection
zoomX: float
zoomY: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
selection: EObjectSelection
zoomX: float
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
selection: EObjectSelection
) -> None
DrawFeature(
graphicContext: EDrawAdapter
feature: EDrawableFeature
selection: EObjectSelection
elementIndex: int
zoomX: float
zoomY: float
panX: float
panY: float
) -> None
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 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.
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.
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.