A draw adapter using the GDI+ native API on Windows. This class is only usable on Windows and all its methods will throw NotImplemented errors if used on another platform. More...


Public Member Functions | |
| EWindowsDrawAdapter (IntPtr dc) | |
| Creates an EWindowsDrawAdapter either by providing a drawing context or an image. | |
| EWindowsDrawAdapter (eVision.EImageBW8 pImage) | |
| Creates an EWindowsDrawAdapter either by providing a drawing context or an image. | |
| EWindowsDrawAdapter (eVision.EImageC24 pImage) | |
| Creates an EWindowsDrawAdapter either by providing a drawing context or an image. | |
| 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 (EWindowsDrawAdapter.Font). | |
| override void | UseCurrentPen () |
| Uses the current GDI pen. | |
| override void | UseCurrentBrush () |
| Use the current pen set in the drawing framework. | |
| void | Close () |
| Closes the attached drawing context, if the current instance was initialized from an image. | |
| 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 | |
| override eVision.EPen | Pen [set] |
| Default pen. | |
| override eVision.EBrush | Brush [set] |
| Default brush. | |
| override eVision.EFont | Font [set] |
| Default font. | |
| IntPtr | HDC [get] |
| Gets the HDC associated with this instance of EWindowsDrawAdapter. | |
| 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. | |
A draw adapter using the GDI+ native API on Windows. This class is only usable on Windows and all its methods will throw NotImplemented errors if used on another platform.
It is recommended to call EWindowsDrawAdapter.Close after using this class.
License(s): None
| eVision.EWindowsDrawAdapter.EWindowsDrawAdapter | ( | IntPtr | dc | ) |
Creates an EWindowsDrawAdapter either by providing a drawing context or an image.
If a drawing context is provided EWindowsDrawAdapter will forward all drawing commands to that drawing context.
If an image is provided a drawing context will be initialized on that image and that drawing context will be closed either on destruction of the EWindowsDrawAdapter or when the EWindowsDrawAdapter.Close method is called.
| dc | The Windows API drawing context. |
| eVision.EWindowsDrawAdapter.EWindowsDrawAdapter | ( | eVision.EImageBW8 | pImage | ) |
Creates an EWindowsDrawAdapter either by providing a drawing context or an image.
If a drawing context is provided EWindowsDrawAdapter will forward all drawing commands to that drawing context.
If an image is provided a drawing context will be initialized on that image and that drawing context will be closed either on destruction of the EWindowsDrawAdapter or when the EWindowsDrawAdapter.Close method is called.
| pImage | An image to draw to. |
| eVision.EWindowsDrawAdapter.EWindowsDrawAdapter | ( | eVision.EImageC24 | pImage | ) |
Creates an EWindowsDrawAdapter either by providing a drawing context or an image.
If a drawing context is provided EWindowsDrawAdapter will forward all drawing commands to that drawing context.
If an image is provided a drawing context will be initialized on that image and that drawing context will be closed either on destruction of the EWindowsDrawAdapter or when the EWindowsDrawAdapter.Close method is called.
| pImage | An image to draw to. |
| override void eVision.EWindowsDrawAdapter.Arc | ( | int | orgX, |
| int | orgY, | ||
| int | width, | ||
| int | height, | ||
| float | startAngle, | ||
| float | amplitude ) |
Draws an arc defined by a rectangle, angle, and amplitude.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| startAngle | Starting angle of the arc in radians |
| amplitude | Amplitude of the arc in radians |
| override void eVision.EWindowsDrawAdapter.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.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| startAngle | Starting angle of the arc in radians |
| amplitude | Amplitude of the arc in radians |
| pen | Optional pen to use |
| override void eVision.EWindowsDrawAdapter.BackedText | ( | string | text, |
| int | x, | ||
| int | y, | ||
| float | orientation ) |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation 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.
| override void eVision.EWindowsDrawAdapter.BackedText | ( | string | text, |
| int | x, | ||
| int | y, | ||
| float | orientation, | ||
| eVision.EBrush | textBrush ) |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
| textBrush | Optional 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.
| override void eVision.EWindowsDrawAdapter.BackedText | ( | string | text, |
| int | x, | ||
| int | y, | ||
| float | orientation, | ||
| eVision.EBrush | textBrush, | ||
| eVision.EBrush | backgroundBrush ) |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
| textBrush | Optional brush to use for the color of the text. |
| backgroundBrush | Optional 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.
| override void eVision.EWindowsDrawAdapter.BackedText | ( | string | text, |
| int | x, | ||
| int | y, | ||
| float | orientation, | ||
| eVision.EBrush | textBrush, | ||
| eVision.EBrush | backgroundBrush, | ||
| eVision.ETextSizeConstraint | constraint ) |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
| textBrush | Optional brush to use for the color of the text. |
| backgroundBrush | Optional brush to use for the background. |
| constraint | Text 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.
| void eVision.EWindowsDrawAdapter.Close | ( | ) |
Closes the attached drawing context, if the current instance was initialized from an image.
This is method is always called implicitly during the destruction of the current object. It is still recommended to call it explicitly when using non-C++ programming languages to ensure all ressources are properly released.
This method never throws exceptions.
|
virtual |
Computes text size for given constraint. Constraint is the desired total width of the text to draw.
| text | Text to measure before drawing. |
| desiredWidth | Width constraint. |
Reimplemented from eVision.EDrawAdapter.
| override void eVision.EWindowsDrawAdapter.DrawPoint | ( | int | x1, |
| int | y1 ) |
Draws a point at the given coordinate.
| x1 | X coordinate |
| y1 | Y coordinate |
| override void eVision.EWindowsDrawAdapter.DrawPoint | ( | int | x1, |
| int | y1, | ||
| eVision.EPen | pen ) |
Draws a point at the given coordinate.
| x1 | X coordinate |
| y1 | Y coordinate |
| pen | Optional pen to use |
| override void eVision.EWindowsDrawAdapter.Ellipse | ( | int | orgX, |
| int | orgY, | ||
| int | width, | ||
| int | height ) |
Draws an ellipse.
| orgX | X origin of the rectangle containing the ellipse |
| orgY | Y origin of the rectangle containing the ellipse |
| width | Width of the rectangle containing the ellipse |
| height | Height 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.
| override void eVision.EWindowsDrawAdapter.Ellipse | ( | int | orgX, |
| int | orgY, | ||
| int | width, | ||
| int | height, | ||
| eVision.EPen | pen ) |
Draws an ellipse.
| orgX | X origin of the rectangle containing the ellipse |
| orgY | Y origin of the rectangle containing the ellipse |
| width | Width of the rectangle containing the ellipse |
| height | Height of the rectangle containing the ellipse |
| pen | Optional 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.
| override void eVision.EWindowsDrawAdapter.FilledEllipse | ( | int | orgX, |
| int | orgY, | ||
| int | width, | ||
| int | height ) |
Fills an ellipse.
| orgX | X origin of the rectangle containing the ellipse |
| orgY | Y origin of the rectangle containing the ellipse |
| width | Width of the rectangle containing the ellipse |
| height | Height 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.
| override void eVision.EWindowsDrawAdapter.FilledEllipse | ( | int | orgX, |
| int | orgY, | ||
| int | width, | ||
| int | height, | ||
| eVision.EPen | pen ) |
Fills an ellipse.
| orgX | X origin of the rectangle containing the ellipse |
| orgY | Y origin of the rectangle containing the ellipse |
| width | Width of the rectangle containing the ellipse |
| height | Height of the rectangle containing the ellipse |
| pen | Optional 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.
| override void eVision.EWindowsDrawAdapter.FilledEllipse | ( | int | orgX, |
| int | orgY, | ||
| int | width, | ||
| int | height, | ||
| eVision.EPen | pen, | ||
| eVision.EBrush | brush ) |
Fills an ellipse.
| orgX | X origin of the rectangle containing the ellipse |
| orgY | Y origin of the rectangle containing the ellipse |
| width | Width of the rectangle containing the ellipse |
| height | Height of the rectangle containing the ellipse |
| pen | Optional pen to use for drawing the contour of the ellipse |
| brush | Optional 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.
| override void eVision.EWindowsDrawAdapter.FilledPolygon | ( | eVision.EPoint[] | points | ) |
Fills a polygon.
| points | Points of the polygon |
| override void eVision.EWindowsDrawAdapter.FilledPolygon | ( | eVision.EPoint[] | points, |
| eVision.EPen | pen ) |
Fills a polygon.
| points | Points of the polygon |
| pen | Optional pen to use for drawing the contour of the polygon |
| override void eVision.EWindowsDrawAdapter.FilledPolygon | ( | eVision.EPoint[] | points, |
| eVision.EPen | pen, | ||
| eVision.EBrush | brush ) |
Fills a polygon.
| points | Points of the polygon |
| pen | Optional pen to use for drawing the contour of the polygon |
| brush | Optional pen to use for drawing the inside of the polygon |
| override void eVision.EWindowsDrawAdapter.FilledRectangle | ( | int | orgX, |
| int | orgY, | ||
| int | width, | ||
| int | height ) |
Fills a rectangle.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| override void eVision.EWindowsDrawAdapter.FilledRectangle | ( | int | orgX, |
| int | orgY, | ||
| int | width, | ||
| int | height, | ||
| eVision.EPen | pen ) |
Fills a rectangle.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| pen | Optional pen to use for drawing the contour of the rectangle |
| override void eVision.EWindowsDrawAdapter.FilledRectangle | ( | int | orgX, |
| int | orgY, | ||
| int | width, | ||
| int | height, | ||
| eVision.EPen | pen, | ||
| eVision.EBrush | brush ) |
Fills a rectangle.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| pen | Optional pen to use for drawing the contour of the rectangle |
| brush | Optional brush to use for filling the inside of the rectangle |
| override eVision.EPoint eVision.EWindowsDrawAdapter.GetTextSize | ( | string | text | ) |
Size of the given text using the default font (EWindowsDrawAdapter.Font).
| text | Text |
| override void eVision.EWindowsDrawAdapter.Image | ( | eVision.EBaseROI | image, |
| float | orgX, | ||
| float | orgY, | ||
| float | width, | ||
| float | height ) |
Draws an image.
| image | Image. |
| orgX | X coordinate of the point where to draw the image. |
| orgY | Y coordinate of the point where to draw the image. |
| width | Width of the destination rectangle in which to draw the image. |
| height | Height of the destination rectangle in which to draw the image. |
| override void eVision.EWindowsDrawAdapter.Image | ( | eVision.EROIBW8 | image, |
| eVision.EBW8Vector | pColorScale, | ||
| float | orgX, | ||
| float | orgY, | ||
| float | width, | ||
| float | height ) |
Draws an image.
| image | Image. |
| pColorScale | Color scale to draw a grayscale image with. |
| orgX | X coordinate of the point where to draw the image. |
| orgY | Y coordinate of the point where to draw the image. |
| width | Width of the destination rectangle in which to draw the image. |
| height | Height of the destination rectangle in which to draw the image. |
| override void eVision.EWindowsDrawAdapter.Image | ( | eVision.EROIBW8 | image, |
| eVision.EC24Vector | pColorScale, | ||
| float | orgX, | ||
| float | orgY, | ||
| float | width, | ||
| float | height ) |
Draws an image.
| image | Image. |
| pColorScale | Color scale to draw a grayscale image with. |
| orgX | X coordinate of the point where to draw the image. |
| orgY | Y coordinate of the point where to draw the image. |
| width | Width of the destination rectangle in which to draw the image. |
| height | Height of the destination rectangle in which to draw the image. |
| override void eVision.EWindowsDrawAdapter.Line | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2 ) |
Draws a line between two points.
| x1 | X coordinate of line origin point |
| y1 | Y coordinate of line origin point |
| x2 | X coordinate of line end point |
| y2 | Y coordinate of line end point |
| override void eVision.EWindowsDrawAdapter.Line | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| eVision.EPen | pen ) |
Draws a line between two points.
| x1 | X coordinate of line origin point |
| y1 | Y coordinate of line origin point |
| x2 | X coordinate of line end point |
| y2 | Y coordinate of line end point |
| pen | Optional pen to use |
| override void eVision.EWindowsDrawAdapter.Polygon | ( | eVision.EPoint[] | points | ) |
Draws a polygon.
| points | Points of the polygon |
| override void eVision.EWindowsDrawAdapter.Polygon | ( | eVision.EPoint[] | points, |
| eVision.EPen | pen ) |
Draws a polygon.
| points | Points of the polygon |
| pen | Optional pen to use |
| override void eVision.EWindowsDrawAdapter.Rectangle | ( | int | orgX, |
| int | orgY, | ||
| int | width, | ||
| int | height ) |
Draws a rectangle.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| override void eVision.EWindowsDrawAdapter.Rectangle | ( | int | orgX, |
| int | orgY, | ||
| int | width, | ||
| int | height, | ||
| eVision.EPen | pen ) |
Draws a rectangle.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| pen | Optional pen to use |
| override void eVision.EWindowsDrawAdapter.Text | ( | string | text, |
| int | x, | ||
| int | y, | ||
| float | orientation ) |
Draws a text.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation 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.
| override void eVision.EWindowsDrawAdapter.Text | ( | string | text, |
| int | x, | ||
| int | y, | ||
| float | orientation, | ||
| eVision.EBrush | textBrush ) |
Draws a text.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
| textBrush | Optional 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.
| override void eVision.EWindowsDrawAdapter.Text | ( | string | text, |
| int | x, | ||
| int | y, | ||
| float | orientation, | ||
| eVision.EBrush | textBrush, | ||
| eVision.ETextSizeConstraint | constraint ) |
Draws a text.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
| textBrush | Optional brush to use for the color of the text. |
| constraint | Text 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.
| override void eVision.EWindowsDrawAdapter.UseCurrentBrush | ( | ) |
Use the current pen set in the drawing framework.
| override void eVision.EWindowsDrawAdapter.UseCurrentPen | ( | ) |
Uses the current GDI pen.
|
set |
Default brush.
|
set |
Default font.
|
get |
Gets the HDC associated with this instance of EWindowsDrawAdapter.
|
set |
Default pen.