eVision .NET API
Loading...
Searching...
No Matches
eVision.EExternalDrawAdapter Class Reference

Wrapper around an external draw adapter to allow it to be used by eVision. More...

Inheritance diagram for eVision.EExternalDrawAdapter:
Collaboration diagram for eVision.EExternalDrawAdapter:

Public Member Functions

 EExternalDrawAdapter (IntPtr adapter)
 Constructor.
 EExternalDrawAdapter (eVision.EExternalDrawAdapter other)
 Constructor.
override void DrawPoint (int x1, int y1, eVision.EPen pen)
 Draws a point at the given coordinate.
override void DrawPoint (int x1, int y1)
 Draws a point at the given coordinate.
override void Line (int x1, int y1, int x2, int y2, eVision.EPen pen)
 Draws a line between two points.
override void Line (int x1, int y1, int x2, int y2)
 Draws a line between two points.
override void Arc (int orgX, int orgY, int width, int height, float startAngle, float amplitude, eVision.EPen pen)
 Draws an arc defined by a rectangle, angle, and amplitude.
override void Arc (int orgX, int orgY, int width, int height, float startAngle, float amplitude)
 Draws an arc defined by a rectangle, angle, and amplitude.
override void Rectangle (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Draws a rectangle.
override void Rectangle (int orgX, int orgY, int width, int height)
 Draws a rectangle.
override void Polygon (eVision.EPoint[] points, eVision.EPen pen)
 Draws a polygon.
override void Polygon (eVision.EPoint[] points)
 Draws a polygon.
override void Ellipse (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Draws an ellipse.
override void Ellipse (int orgX, int orgY, int width, int height)
 Draws an ellipse.
override void FilledRectangle (int orgX, int orgY, int width, int height, eVision.EPen pen, eVision.EBrush brush)
 Fills a rectangle.
override void FilledRectangle (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Fills a rectangle.
override void FilledRectangle (int orgX, int orgY, int width, int height)
 Fills a rectangle.
override void FilledEllipse (int orgX, int orgY, int width, int height, eVision.EPen pen, eVision.EBrush brush)
 Fills an ellipse.
override void FilledEllipse (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Fills an ellipse.
override void FilledEllipse (int orgX, int orgY, int width, int height)
 Fills an ellipse.
override void FilledPolygon (eVision.EPoint[] points, eVision.EPen pen, eVision.EBrush brush)
 Fills a polygon.
override void FilledPolygon (eVision.EPoint[] points, eVision.EPen pen)
 Fills a polygon.
override void FilledPolygon (eVision.EPoint[] points)
 Fills a polygon.
override void Text (string text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.ETextSizeConstraint constraint)
 Draws a text.
override void Text (string text, int x, int y, float orientation, eVision.EBrush textBrush)
 Draws a text.
override void Text (string text, int x, int y, float orientation)
 Draws a text.
override void BackedText (string text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.EBrush backgroundBrush, eVision.ETextSizeConstraint constraint)
 Draws a text with a background.
override void BackedText (string text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.EBrush backgroundBrush)
 Draws a text with a background.
override void BackedText (string text, int x, int y, float orientation, eVision.EBrush textBrush)
 Draws a text with a background.
override void BackedText (string text, int x, int y, float orientation)
 Draws a text with a background.
override void Image (eVision.EBaseROI image, float orgX, float orgY, float width, float height)
 Draws an image.
override void Image (eVision.EROIBW8 image, eVision.EC24Vector pColorScale, float orgX, float orgY, float width, float height)
 Draws an image.
override void Image (eVision.EROIBW8 image, eVision.EBW8Vector pColorScale, float orgX, float orgY, float width, float height)
 Draws an image.
override eVision.EPoint GetTextSize (string text)
 Size of the given text using the default font (EExternalDrawAdapter.Font).
override void UseCurrentPen ()
 Use the current pen set in the drawing framework.
override void UseCurrentBrush ()
 Use the current pen set in the drawing framework.
override int ComputeTextSize (string text, int desiredWidth)
 Computes text size for given constraint. Constraint is the desired total width of the text to draw.
Public Member Functions inherited from eVision.EDrawAdapter
void DrawPoint (int x1, int y1, eVision.EPen pen)
 Draws a point at the given coordinate.
void DrawPoint (int x1, int y1)
 Draws a point at the given coordinate.
void Line (int x1, int y1, int x2, int y2, eVision.EPen pen)
 Draws a line between two points.
void Line (int x1, int y1, int x2, int y2)
 Draws a line between two points.
void Arc (int orgX, int orgY, int width, int height, float startAngle, float amplitude, eVision.EPen pen)
 Draws an arc defined by a rectangle, angle, and amplitude.
void Arc (int orgX, int orgY, int width, int height, float startAngle, float amplitude)
 Draws an arc defined by a rectangle, angle, and amplitude.
void Rectangle (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Draws a rectangle.
void Rectangle (int orgX, int orgY, int width, int height)
 Draws a rectangle.
void Polygon (eVision.EPoint[] points, eVision.EPen pen)
 Draws a polygon.
void Polygon (eVision.EPoint[] points)
 Draws a polygon.
virtual void Polygon (eVision.EPolygon polygon, eVision.EPen pen)
 Draws a polygon.
virtual void Polygon (eVision.EPolygon polygon)
 Draws a polygon.
void Ellipse (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Draws an ellipse.
void Ellipse (int orgX, int orgY, int width, int height)
 Draws an ellipse.
void Ellipse (eVision.EEllipse ellipse, eVision.EPen pen)
 Draws an ellipse.
void Ellipse (eVision.EEllipse ellipse)
 Draws an ellipse.
virtual void RotatedEllipse (float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, bool drawDiagonals, eVision.EPen pen)
 Draws a rotated ellipse.
virtual void RotatedEllipse (float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, bool drawDiagonals)
 Draws a rotated ellipse.
void RotatedEllipse (eVision.EEllipse ellipse, bool drawDiagonals, eVision.EPen pen)
 Draws a rotated ellipse.
void RotatedEllipse (eVision.EEllipse ellipse, bool drawDiagonals)
 Draws a rotated ellipse.
void FilledRectangle (int orgX, int orgY, int width, int height, eVision.EPen pen, eVision.EBrush brush)
 Fills a rectangle.
void FilledRectangle (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Fills a rectangle.
void FilledRectangle (int orgX, int orgY, int width, int height)
 Fills a rectangle.
void FilledEllipse (int orgX, int orgY, int width, int height, eVision.EPen pen, eVision.EBrush brush)
 Fills an ellipse.
void FilledEllipse (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Fills an ellipse.
void FilledEllipse (int orgX, int orgY, int width, int height)
 Fills an ellipse.
void FilledEllipse (eVision.EEllipse ellipse, eVision.EPen pen, eVision.EBrush brush)
 Fills an ellipse.
void FilledEllipse (eVision.EEllipse ellipse, eVision.EPen pen)
 Fills an ellipse.
void FilledEllipse (eVision.EEllipse ellipse)
 Fills an ellipse.
virtual void FilledRotatedEllipse (float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, eVision.EPen pen, eVision.EBrush brush)
 Fills a rotated ellipse.
virtual void FilledRotatedEllipse (float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, eVision.EPen pen)
 Fills a rotated ellipse.
virtual void FilledRotatedEllipse (float centerX, float centerY, float radianAngle, float longAxis, float shortAxis)
 Fills a rotated ellipse.
void FilledRotatedEllipse (eVision.EEllipse ellipse, eVision.EPen pen, eVision.EBrush brush)
 Fills a rotated ellipse.
void FilledRotatedEllipse (eVision.EEllipse ellipse, eVision.EPen pen)
 Fills a rotated ellipse.
void FilledRotatedEllipse (eVision.EEllipse ellipse)
 Fills a rotated ellipse.
void FilledPolygon (eVision.EPoint[] points, eVision.EPen pen, eVision.EBrush brush)
 Fills a polygon.
void FilledPolygon (eVision.EPoint[] points, eVision.EPen pen)
 Fills a polygon.
void FilledPolygon (eVision.EPoint[] points)
 Fills a polygon.
virtual void FilledPolygon (eVision.EPolygon polygon, eVision.EPen pen, eVision.EBrush brush)
 Fills a polygon.
virtual void FilledPolygon (eVision.EPolygon polygon, eVision.EPen pen)
 Fills a polygon.
virtual void FilledPolygon (eVision.EPolygon polygon)
 Fills a polygon.
virtual void Text (string text, int x, int y, eVision.EBrush textBrush, eVision.ETextSizeConstraint constraint)
 Draws a text.
virtual void Text (string text, int x, int y, eVision.EBrush textBrush)
 Draws a text.
virtual void Text (string text, int x, int y)
 Draws a text.
void Text (string text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.ETextSizeConstraint constraint)
 Draws a text.
void Text (string text, int x, int y, float orientation, eVision.EBrush textBrush)
 Draws a text.
void Text (string text, int x, int y, float orientation)
 Draws a text.
virtual void BackedText (string text, int x, int y, eVision.EBrush textBrush, eVision.EBrush backgroundBrush, eVision.ETextSizeConstraint constraint)
 Draws a text with a background.
virtual void BackedText (string text, int x, int y, eVision.EBrush textBrush, eVision.EBrush backgroundBrush)
 Draws a text with a background.
virtual void BackedText (string text, int x, int y, eVision.EBrush textBrush)
 Draws a text with a background.
virtual void BackedText (string text, int x, int y)
 Draws a text with a background.
void BackedText (string text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.EBrush backgroundBrush, eVision.ETextSizeConstraint constraint)
 Draws a text with a background.
void BackedText (string text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.EBrush backgroundBrush)
 Draws a text with a background.
void BackedText (string text, int x, int y, float orientation, eVision.EBrush textBrush)
 Draws a text with a background.
void BackedText (string text, int x, int y, float orientation)
 Draws a text with a background.
virtual void Image (eVision.EBaseROI image)
 Draws an image.
virtual void Image (eVision.EROIBW8 image, eVision.EBW8Vector pColorScale)
 Draws an image.
virtual void Image (eVision.EROIBW8 image, eVision.EC24Vector pColorScale)
 Draws an image.
void Image (eVision.EBaseROI image, float orgX, float orgY, float width, float height)
 Draws an image.
void Image (eVision.EROIBW8 image, eVision.EC24Vector pColorScale, float orgX, float orgY, float width, float height)
 Draws an image.
void Image (eVision.EROIBW8 image, eVision.EBW8Vector pColorScale, float orgX, float orgY, float width, float height)
 Draws an image.
virtual void DrawMask (eVision.EBaseROI mask, eVision.EBrush brush)
 Draws a mask with a brush.
virtual void DrawMask (eVision.EBaseROI mask)
 Draws a mask with a brush.
virtual void DrawMask (eVision.EBaseROI mask, float orgX, float orgY, float width, float height, eVision.EBrush brush)
 Draws a mask with a brush.
virtual void DrawMask (eVision.EBaseROI mask, float orgX, float orgY, float width, float height)
 Draws a mask with a brush.
eVision.EPoint GetTextSize (string text)
 Size of the given text using the default font (EDrawAdapter.Font).
void UseCurrentPen ()
 Use the current pen set in the drawing framework.
void UseCurrentBrush ()
 Use the current pen set in the drawing framework.

Properties

virtual eVision.EDrawableExtent Extent [get]
 Extent of the underlying surface being drawn on.
override eVision.EPen Pen [set]
 Default pen.
override eVision.EBrush Brush [set]
 Default brush.
override eVision.EFont Font [set]
 Default font.
static IntPtr DrawPointFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.DrawPoint.
static IntPtr LineFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Line.
static IntPtr ArcFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Arc.
static IntPtr RectangleFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Rectangle.
static IntPtr PolygonFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Polygon.
static IntPtr EllipseFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Ellipse.
static IntPtr FillRectangleFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.FilledRectangle.
static IntPtr FillEllipseFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.FilledEllipse.
static IntPtr FillPolygonFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.FilledPolygon.
static IntPtr TextFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Text.
static IntPtr BackedTextFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.BackedText.
static IntPtr ImageFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Image when given no pColorScale argument.
static IntPtr ImageWithColorScaleFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Image when given a pColorScale argument of type EC24Vector.
static IntPtr ImageWithGrayscaleScaleFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Image when given a pColorScale argument of type EBW8Vector.
static IntPtr GetTextSizeFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.GetTextSize.
static IntPtr GetExtentFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Extent.
static IntPtr UseCurrentPenFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.UseCurrentPen.
static IntPtr UseCurrentBrushFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.UseCurrentBrush.
static IntPtr SetPenFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Pen.
static IntPtr SetBrushFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Brush.
static IntPtr SetFontFunctionPtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.Font.
static IntPtr ComputeTextSizePtr [set]
 Sets the function pointer that will be called by EExternalDrawAdapter.ComputeTextSize.
Properties inherited from eVision.EDrawAdapter
virtual eVision.EPen Pen [get, set]
 Default pen.
virtual eVision.EBrush Brush [get, set]
 Default brush.
virtual eVision.EFont Font [get, set]
 Default font.

Detailed Description

Wrapper around an external draw adapter to allow it to be used by eVision.

License(s): None

Constructor & Destructor Documentation

◆ EExternalDrawAdapter() [1/2]

eVision.EExternalDrawAdapter.EExternalDrawAdapter ( IntPtr adapter)

Constructor.

Parameters
adapterPointer to the adapter that will be used by this class.

◆ EExternalDrawAdapter() [2/2]

eVision.EExternalDrawAdapter.EExternalDrawAdapter ( eVision.EExternalDrawAdapter other)

Constructor.

Parameters
otherThe other EExternalDrawAdapter that we will copy into this one.

Member Function Documentation

◆ Arc() [1/2]

override void eVision.EExternalDrawAdapter.Arc ( int orgX,
int orgY,
int width,
int height,
float startAngle,
float amplitude )

Draws an arc defined by a rectangle, angle, and amplitude.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle
startAngleStarting angle of the arc in radians
amplitudeAmplitude of the arc in radians

◆ Arc() [2/2]

override void eVision.EExternalDrawAdapter.Arc ( int orgX,
int orgY,
int width,
int height,
float startAngle,
float amplitude,
eVision.EPen pen )

Draws an arc defined by a rectangle, angle, and amplitude.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle
startAngleStarting angle of the arc in radians
amplitudeAmplitude of the arc in radians
penOptional pen to use

◆ BackedText() [1/4]

override void eVision.EExternalDrawAdapter.BackedText ( string text,
int x,
int y,
float orientation )

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.

If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.

◆ BackedText() [2/4]

override void eVision.EExternalDrawAdapter.BackedText ( string text,
int x,
int y,
float orientation,
eVision.EBrush textBrush )

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.
textBrushOptional brush to use for the color of the text.

If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.

◆ BackedText() [3/4]

override void eVision.EExternalDrawAdapter.BackedText ( string text,
int x,
int y,
float orientation,
eVision.EBrush textBrush,
eVision.EBrush backgroundBrush )

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.
textBrushOptional brush to use for the color of the text.
backgroundBrushOptional brush to use for the background.

If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.

◆ BackedText() [4/4]

override void eVision.EExternalDrawAdapter.BackedText ( string text,
int x,
int y,
float orientation,
eVision.EBrush textBrush,
eVision.EBrush backgroundBrush,
eVision.ETextSizeConstraint constraint )

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.
textBrushOptional brush to use for the color of the text.
backgroundBrushOptional brush to use for the background.
constraintText size constraint. By default, no constraint is to be applied.

If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.

◆ ComputeTextSize()

override int eVision.EExternalDrawAdapter.ComputeTextSize ( string text,
int desiredWidth )
virtual

Computes text size for given constraint. Constraint is the desired total width of the text to draw.

Parameters
textText to measure before drawing.
desiredWidthWidth constraint.

Reimplemented from eVision.EDrawAdapter.

◆ DrawPoint() [1/2]

override void eVision.EExternalDrawAdapter.DrawPoint ( int x1,
int y1 )

Draws a point at the given coordinate.

Parameters
x1X coordinate
y1Y coordinate

◆ DrawPoint() [2/2]

override void eVision.EExternalDrawAdapter.DrawPoint ( int x1,
int y1,
eVision.EPen pen )

Draws a point at the given coordinate.

Parameters
x1X coordinate
y1Y coordinate
penOptional pen to use

◆ Ellipse() [1/2]

override void eVision.EExternalDrawAdapter.Ellipse ( int orgX,
int orgY,
int width,
int height )

Draws an ellipse.

Parameters
orgXX origin of the rectangle containing the ellipse
orgYY origin of the rectangle containing the ellipse
widthWidth of the rectangle containing the ellipse
heightHeight of the rectangle containing the ellipse

This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw rotated ellipses, use EDrawAdapter.RotatedEllipse instead. An ellipse with full angular amplitude is always drawn.

◆ Ellipse() [2/2]

override void eVision.EExternalDrawAdapter.Ellipse ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen )

Draws an ellipse.

Parameters
orgXX origin of the rectangle containing the ellipse
orgYY origin of the rectangle containing the ellipse
widthWidth of the rectangle containing the ellipse
heightHeight of the rectangle containing the ellipse
penOptional pen to use

This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw rotated ellipses, use EDrawAdapter.RotatedEllipse instead. An ellipse with full angular amplitude is always drawn.

◆ FilledEllipse() [1/3]

override void eVision.EExternalDrawAdapter.FilledEllipse ( int orgX,
int orgY,
int width,
int height )

Fills an ellipse.

Parameters
orgXX origin of the rectangle containing the ellipse
orgYY origin of the rectangle containing the ellipse
widthWidth of the rectangle containing the ellipse
heightHeight of the rectangle containing the ellipse

This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw filled and rotated ellipses, use EDrawAdapter.FilledRotatedEllipse instead. An ellipse with full angular amplitude is always drawn.

◆ FilledEllipse() [2/3]

override void eVision.EExternalDrawAdapter.FilledEllipse ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen )

Fills an ellipse.

Parameters
orgXX origin of the rectangle containing the ellipse
orgYY origin of the rectangle containing the ellipse
widthWidth of the rectangle containing the ellipse
heightHeight of the rectangle containing the ellipse
penOptional pen to use for drawing the contour of the ellipse

This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw filled and rotated ellipses, use EDrawAdapter.FilledRotatedEllipse instead. An ellipse with full angular amplitude is always drawn.

◆ FilledEllipse() [3/3]

override void eVision.EExternalDrawAdapter.FilledEllipse ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen,
eVision.EBrush brush )

Fills an ellipse.

Parameters
orgXX origin of the rectangle containing the ellipse
orgYY origin of the rectangle containing the ellipse
widthWidth of the rectangle containing the ellipse
heightHeight of the rectangle containing the ellipse
penOptional pen to use for drawing the contour of the ellipse
brushOptional pen to use for drawing the inside of the ellipse

This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw filled and rotated ellipses, use EDrawAdapter.FilledRotatedEllipse instead. An ellipse with full angular amplitude is always drawn.

◆ FilledPolygon() [1/3]

override void eVision.EExternalDrawAdapter.FilledPolygon ( eVision.EPoint[] points)

Fills a polygon.

Parameters
pointsPoints of the polygon

◆ FilledPolygon() [2/3]

override void eVision.EExternalDrawAdapter.FilledPolygon ( eVision.EPoint[] points,
eVision.EPen pen )

Fills a polygon.

Parameters
pointsPoints of the polygon
penOptional pen to use for drawing the contour of the polygon

◆ FilledPolygon() [3/3]

override void eVision.EExternalDrawAdapter.FilledPolygon ( eVision.EPoint[] points,
eVision.EPen pen,
eVision.EBrush brush )

Fills a polygon.

Parameters
pointsPoints of the polygon
penOptional pen to use for drawing the contour of the polygon
brushOptional pen to use for drawing the inside of the polygon

◆ FilledRectangle() [1/3]

override void eVision.EExternalDrawAdapter.FilledRectangle ( int orgX,
int orgY,
int width,
int height )

Fills a rectangle.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle

◆ FilledRectangle() [2/3]

override void eVision.EExternalDrawAdapter.FilledRectangle ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen )

Fills a rectangle.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle
penOptional pen to use for drawing the contour of the rectangle

◆ FilledRectangle() [3/3]

override void eVision.EExternalDrawAdapter.FilledRectangle ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen,
eVision.EBrush brush )

Fills a rectangle.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle
penOptional pen to use for drawing the contour of the rectangle
brushOptional brush to use for filling the inside of the rectangle

◆ GetTextSize()

override eVision.EPoint eVision.EExternalDrawAdapter.GetTextSize ( string text)

Size of the given text using the default font (EExternalDrawAdapter.Font).

Parameters
textText

◆ Image() [1/3]

override void eVision.EExternalDrawAdapter.Image ( eVision.EBaseROI image,
float orgX,
float orgY,
float width,
float height )

Draws an image.

Parameters
imageImage.
orgXX coordinate of the point where to draw the image.
orgYY coordinate of the point where to draw the image.
widthWidth of the destination rectangle in which to draw the image.
heightHeight of the destination rectangle in which to draw the image.

◆ Image() [2/3]

override void eVision.EExternalDrawAdapter.Image ( eVision.EROIBW8 image,
eVision.EBW8Vector pColorScale,
float orgX,
float orgY,
float width,
float height )

Draws an image.

Parameters
imageImage.
pColorScaleColor scale to draw a grayscale image with.
orgXX coordinate of the point where to draw the image.
orgYY coordinate of the point where to draw the image.
widthWidth of the destination rectangle in which to draw the image.
heightHeight of the destination rectangle in which to draw the image.

◆ Image() [3/3]

override void eVision.EExternalDrawAdapter.Image ( eVision.EROIBW8 image,
eVision.EC24Vector pColorScale,
float orgX,
float orgY,
float width,
float height )

Draws an image.

Parameters
imageImage.
pColorScaleColor scale to draw a grayscale image with.
orgXX coordinate of the point where to draw the image.
orgYY coordinate of the point where to draw the image.
widthWidth of the destination rectangle in which to draw the image.
heightHeight of the destination rectangle in which to draw the image.

◆ Line() [1/2]

override void eVision.EExternalDrawAdapter.Line ( int x1,
int y1,
int x2,
int y2 )

Draws a line between two points.

Parameters
x1X coordinate of line origin point
y1Y coordinate of line origin point
x2X coordinate of line end point
y2Y coordinate of line end point

◆ Line() [2/2]

override void eVision.EExternalDrawAdapter.Line ( int x1,
int y1,
int x2,
int y2,
eVision.EPen pen )

Draws a line between two points.

Parameters
x1X coordinate of line origin point
y1Y coordinate of line origin point
x2X coordinate of line end point
y2Y coordinate of line end point
penOptional pen to use

◆ Polygon() [1/2]

override void eVision.EExternalDrawAdapter.Polygon ( eVision.EPoint[] points)

Draws a polygon.

Parameters
pointsPoints of the polygon

◆ Polygon() [2/2]

override void eVision.EExternalDrawAdapter.Polygon ( eVision.EPoint[] points,
eVision.EPen pen )

Draws a polygon.

Parameters
pointsPoints of the polygon
penOptional pen to use

◆ Rectangle() [1/2]

override void eVision.EExternalDrawAdapter.Rectangle ( int orgX,
int orgY,
int width,
int height )

Draws a rectangle.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle

◆ Rectangle() [2/2]

override void eVision.EExternalDrawAdapter.Rectangle ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen )

Draws a rectangle.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle
penOptional pen to use

◆ Text() [1/3]

override void eVision.EExternalDrawAdapter.Text ( string text,
int x,
int y,
float orientation )

Draws a text.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.

If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.

◆ Text() [2/3]

override void eVision.EExternalDrawAdapter.Text ( string text,
int x,
int y,
float orientation,
eVision.EBrush textBrush )

Draws a text.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.
textBrushOptional brush to use for the color of the text.

If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.

◆ Text() [3/3]

override void eVision.EExternalDrawAdapter.Text ( string text,
int x,
int y,
float orientation,
eVision.EBrush textBrush,
eVision.ETextSizeConstraint constraint )

Draws a text.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.
textBrushOptional brush to use for the color of the text.
constraintText size constraint. By default, no constraint is to be applied.

If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.

◆ UseCurrentBrush()

override void eVision.EExternalDrawAdapter.UseCurrentBrush ( )

Use the current pen set in the drawing framework.

◆ UseCurrentPen()

override void eVision.EExternalDrawAdapter.UseCurrentPen ( )

Use the current pen set in the drawing framework.

Property Documentation

◆ ArcFunctionPtr

IntPtr eVision.EExternalDrawAdapter.ArcFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Arc.

◆ BackedTextFunctionPtr

IntPtr eVision.EExternalDrawAdapter.BackedTextFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.BackedText.

◆ Brush

override eVision.EBrush eVision.EExternalDrawAdapter.Brush
set

Default brush.

◆ ComputeTextSizePtr

IntPtr eVision.EExternalDrawAdapter.ComputeTextSizePtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.ComputeTextSize.

◆ DrawPointFunctionPtr

IntPtr eVision.EExternalDrawAdapter.DrawPointFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.DrawPoint.

◆ EllipseFunctionPtr

IntPtr eVision.EExternalDrawAdapter.EllipseFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Ellipse.

◆ Extent

virtual eVision.EDrawableExtent eVision.EExternalDrawAdapter.Extent
get

Extent of the underlying surface being drawn on.

◆ FillEllipseFunctionPtr

IntPtr eVision.EExternalDrawAdapter.FillEllipseFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.FilledEllipse.

◆ FillPolygonFunctionPtr

IntPtr eVision.EExternalDrawAdapter.FillPolygonFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.FilledPolygon.

◆ FillRectangleFunctionPtr

IntPtr eVision.EExternalDrawAdapter.FillRectangleFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.FilledRectangle.

◆ Font

override eVision.EFont eVision.EExternalDrawAdapter.Font
set

Default font.

◆ GetExtentFunctionPtr

IntPtr eVision.EExternalDrawAdapter.GetExtentFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Extent.

◆ GetTextSizeFunctionPtr

IntPtr eVision.EExternalDrawAdapter.GetTextSizeFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.GetTextSize.

◆ ImageFunctionPtr

IntPtr eVision.EExternalDrawAdapter.ImageFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Image when given no pColorScale argument.

◆ ImageWithColorScaleFunctionPtr

IntPtr eVision.EExternalDrawAdapter.ImageWithColorScaleFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Image when given a pColorScale argument of type EC24Vector.

◆ ImageWithGrayscaleScaleFunctionPtr

IntPtr eVision.EExternalDrawAdapter.ImageWithGrayscaleScaleFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Image when given a pColorScale argument of type EBW8Vector.

◆ LineFunctionPtr

IntPtr eVision.EExternalDrawAdapter.LineFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Line.

◆ Pen

override eVision.EPen eVision.EExternalDrawAdapter.Pen
set

Default pen.

◆ PolygonFunctionPtr

IntPtr eVision.EExternalDrawAdapter.PolygonFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Polygon.

◆ RectangleFunctionPtr

IntPtr eVision.EExternalDrawAdapter.RectangleFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Rectangle.

◆ SetBrushFunctionPtr

IntPtr eVision.EExternalDrawAdapter.SetBrushFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Brush.

◆ SetFontFunctionPtr

IntPtr eVision.EExternalDrawAdapter.SetFontFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Font.

◆ SetPenFunctionPtr

IntPtr eVision.EExternalDrawAdapter.SetPenFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Pen.

◆ TextFunctionPtr

IntPtr eVision.EExternalDrawAdapter.TextFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.Text.

◆ UseCurrentBrushFunctionPtr

IntPtr eVision.EExternalDrawAdapter.UseCurrentBrushFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.UseCurrentBrush.

◆ UseCurrentPenFunctionPtr

IntPtr eVision.EExternalDrawAdapter.UseCurrentPenFunctionPtr
staticset

Sets the function pointer that will be called by EExternalDrawAdapter.UseCurrentPen.