EC24Vector::Draw

Draws a plot of the vector element values.

Namespace: Euresys::Open_eVision

[C++]

void Draw(
   EDrawAdapter* graphicContext,
   float width,
   float height
)

void Draw(
   EDrawAdapter* graphicContext,
   float width,
   float height,
   float originX,
   float originY
)

void Draw(
   EDrawAdapter* graphicContext,
   float width,
   float height,
   float originX,
   float originY,
   const ERGBColor& color0,
   const ERGBColor& color1,
   const ERGBColor& color2
)

void Draw(
   EDrawAdapter* graphicContext,
   float width,
   float height,
   const ERGBColor& color0,
   const ERGBColor& color1,
   const ERGBColor& color2
)

void Draw(
   HDC graphicContext,
   float width,
   float height
)

void Draw(
   HDC graphicContext,
   float width,
   float height,
   float originX,
   float originY
)

void Draw(
   HDC graphicContext,
   float width,
   float height,
   float originX,
   float originY,
   const ERGBColor& color0,
   const ERGBColor& color1,
   const ERGBColor& color2
)

void Draw(
   HDC graphicContext,
   float width,
   float height,
   const ERGBColor& color0,
   const ERGBColor& color1,
   const ERGBColor& color2
)

Parameters

graphicContext

Handle of the device context on which to draw.

width

Outermost horizontal size, in pixels.

height

Outermost vertical size, in pixels.

originX

Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.

originY

Ordinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.

color0

The color to be used when drawing the curve of the first color component of the vector, as an RGB color. By default, the current pen is used to draw the curve.

color1

The color to be used when drawing the curve of the second color component of the vector, as an RGB color. By default, the current pen is used to draw the curve.

color2

The color to be used when drawing the curve of the third color component of the vector, as an RGB color. By default, the current pen is used to draw the curve.

Remarks

A vector is able to draw itself in a window. The vector plots the element values as a function of the element indices. The drawing appears on a neutral background. Drawing is done in the device context associated to the desired window. To draw the curves, the current pen is used. To draw the annotations, a black pen is used instead. In the special case of the EC24Vector, three curves are drawn instead of one, each corresponding to a color component. Three pen objects must be provided to draw the curves with appropriate attributes. 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.

EC24Vector.Draw

Draws a plot of the vector element values.

Namespace: Euresys.Open_eVision

[C#]

void Draw(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   float width,
   float height
)

void Draw(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   float width,
   float height,
   float originX,
   float originY
)

void Draw(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   float width,
   float height,
   float originX,
   float originY,
   Euresys.Open_eVision.ERGBColor color0,
   Euresys.Open_eVision.ERGBColor color1,
   Euresys.Open_eVision.ERGBColor color2
)

void Draw(
   Euresys.Open_eVision.EDrawAdapter graphicContext,
   float width,
   float height,
   Euresys.Open_eVision.ERGBColor color0,
   Euresys.Open_eVision.ERGBColor color1,
   Euresys.Open_eVision.ERGBColor color2
)

void Draw(
   IntPtr graphicContext,
   float width,
   float height
)

void Draw(
   IntPtr graphicContext,
   float width,
   float height,
   float originX,
   float originY
)

void Draw(
   IntPtr graphicContext,
   float width,
   float height,
   float originX,
   float originY,
   Euresys.Open_eVision.ERGBColor color0,
   Euresys.Open_eVision.ERGBColor color1,
   Euresys.Open_eVision.ERGBColor color2
)

void Draw(
   IntPtr graphicContext,
   float width,
   float height,
   Euresys.Open_eVision.ERGBColor color0,
   Euresys.Open_eVision.ERGBColor color1,
   Euresys.Open_eVision.ERGBColor color2
)

Parameters

graphicContext

Handle of the device context on which to draw.

width

Outermost horizontal size, in pixels.

height

Outermost vertical size, in pixels.

originX

Abscissa of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.

originY

Ordinate of the upper left corner of the plot's bounding rectangle, in pixels. By default, the upper left corner of the window is used.

color0

The color to be used when drawing the curve of the first color component of the vector, as an RGB color. By default, the current pen is used to draw the curve.

color1

The color to be used when drawing the curve of the second color component of the vector, as an RGB color. By default, the current pen is used to draw the curve.

color2

The color to be used when drawing the curve of the third color component of the vector, as an RGB color. By default, the current pen is used to draw the curve.

Remarks

A vector is able to draw itself in a window. The vector plots the element values as a function of the element indices. The drawing appears on a neutral background. In the special case of the EC24Vector, three curves are drawn instead of one, each corresponding to a color component. Three pen objects must be provided to draw the curves with appropriate attributes. 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.