Draw adapter using GDIPlus. More...


Public Member Functions | |
| None | __init__ (self, ctypes.c_void_p dc) |
| Construct the eVision.EGDIPlusDrawAdapter from a graphics context. | |
| Public Member Functions inherited from eVision.EWindowsDrawAdapter | |
| None | __init__ (self, ctypes.c_void_p dc) |
| Creates an eVision.EWindowsDrawAdapter either by providing a drawing context or an image. | |
| None | __init__ (self, eVision.EImageBW8|None pImage) |
| Creates an eVision.EWindowsDrawAdapter either by providing a drawing context or an image. | |
| None | __init__ (self, eVision.EImageC24|None pImage) |
| Creates an eVision.EWindowsDrawAdapter either by providing a drawing context or an image. | |
| None | DrawPoint (self, int x1, int y1, eVision.EPen pen) |
| Draws a point at the given coordinate. | |
| None | DrawPoint (self, int x1, int y1) |
| Draws a point at the given coordinate. | |
| None | Line (self, int x1, int y1, int x2, int y2, eVision.EPen pen) |
| Draws a line between two points. | |
| None | Line (self, int x1, int y1, int x2, int y2) |
| Draws a line between two points. | |
| None | Arc (self, 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. | |
| None | Arc (self, int orgX, int orgY, int width, int height, float startAngle, float amplitude) |
| Draws an arc defined by a rectangle, angle, and amplitude. | |
| None | Rectangle (self, int orgX, int orgY, int width, int height, eVision.EPen pen) |
| Draws a rectangle. | |
| None | Rectangle (self, int orgX, int orgY, int width, int height) |
| Draws a rectangle. | |
| None | Polygon (self, list[eVision._eVision.EPoint] points, eVision.EPen pen) |
| Draws a polygon. | |
| None | Polygon (self, list[eVision._eVision.EPoint] points) |
| Draws a polygon. | |
| None | Ellipse (self, int orgX, int orgY, int width, int height, eVision.EPen pen) |
| Draws an ellipse. | |
| None | Ellipse (self, int orgX, int orgY, int width, int height) |
| Draws an ellipse. | |
| None | FilledRectangle (self, int orgX, int orgY, int width, int height, eVision.EPen pen, eVision.EBrush brush) |
| Fills a rectangle. | |
| None | FilledRectangle (self, int orgX, int orgY, int width, int height, eVision.EPen pen) |
| Fills a rectangle. | |
| None | FilledRectangle (self, int orgX, int orgY, int width, int height) |
| Fills a rectangle. | |
| None | FilledEllipse (self, int orgX, int orgY, int width, int height, eVision.EPen pen, eVision.EBrush brush) |
| Fills an ellipse. | |
| None | FilledEllipse (self, int orgX, int orgY, int width, int height, eVision.EPen pen) |
| Fills an ellipse. | |
| None | FilledEllipse (self, int orgX, int orgY, int width, int height) |
| Fills an ellipse. | |
| None | FilledPolygon (self, list[eVision._eVision.EPoint] points, eVision.EPen pen, eVision.EBrush brush) |
| Fills a polygon. | |
| None | FilledPolygon (self, list[eVision._eVision.EPoint] points, eVision.EPen pen) |
| Fills a polygon. | |
| None | FilledPolygon (self, list[eVision._eVision.EPoint] points) |
| Fills a polygon. | |
| None | Text (self, str text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.ETextSizeConstraint constraint) |
| Draws a text. | |
| None | Text (self, str text, int x, int y, float orientation, eVision.EBrush textBrush) |
| Draws a text. | |
| None | Text (self, str text, int x, int y, float orientation) |
| Draws a text. | |
| None | BackedText (self, str text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.EBrush backgroundBrush, eVision.ETextSizeConstraint constraint) |
| Draws a text with a background. | |
| None | BackedText (self, str text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.EBrush backgroundBrush) |
| Draws a text with a background. | |
| None | BackedText (self, str text, int x, int y, float orientation, eVision.EBrush textBrush) |
| Draws a text with a background. | |
| None | BackedText (self, str text, int x, int y, float orientation) |
| Draws a text with a background. | |
| None | Image (self, eVision.EBaseROI image, float orgX, float orgY, float width, float height) |
| Draws an image. | |
| None | Image (self, eVision.EROIBW8 image, eVision.EC24Vector|None pColorScale, float orgX, float orgY, float width, float height) |
| Draws an image. | |
| None | Image (self, eVision.EROIBW8 image, eVision.EBW8Vector|None pColorScale, float orgX, float orgY, float width, float height) |
| Draws an image. | |
| eVision.EPoint | GetTextSize (self, str text) |
| Size of the given text using the default font (eVision.EWindowsDrawAdapter.Font). | |
| None | UseCurrentPen (self) |
| Uses the current GDI pen. | |
| None | UseCurrentBrush (self) |
| Use the current pen set in the drawing framework. | |
| None | Close (self) |
| Closes the attached drawing context, if the current instance was initialized from an image. | |
| int | ComputeTextSize (self, str text, int desiredWidth) |
| Computes text size for given constraint. | |
| eVision.EPen | Pen (self) |
| Default pen. | |
| Pen (self, eVision.EPen value) | |
| Default pen. | |
| eVision.EBrush | Brush (self) |
| Default brush. | |
| Brush (self, eVision.EBrush value) | |
| Default brush. | |
| eVision.EFont | Font (self) |
| Default font. | |
| Font (self, eVision.EFont value) | |
| Default font. | |
| ctypes.c_void_p | HDC (self) |
| Gets the HDC associated with this instance of eVision.EWindowsDrawAdapter. | |
| Public Member Functions inherited from eVision.EDrawAdapter | |
| None | RotatedEllipse (self, float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, bool drawDiagonals, eVision.EPen pen) |
| Draws a rotated ellipse. | |
| None | RotatedEllipse (self, float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, bool drawDiagonals) |
| Draws a rotated ellipse. | |
| None | RotatedEllipse (self, eVision.EEllipse ellipse, bool drawDiagonals, eVision.EPen pen) |
| Draws a rotated ellipse. | |
| None | RotatedEllipse (self, eVision.EEllipse ellipse, bool drawDiagonals) |
| Draws a rotated ellipse. | |
| None | FilledRotatedEllipse (self, float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, eVision.EPen pen, eVision.EBrush brush) |
| Fills a rotated ellipse. | |
| None | FilledRotatedEllipse (self, float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, eVision.EPen pen) |
| Fills a rotated ellipse. | |
| None | FilledRotatedEllipse (self, float centerX, float centerY, float radianAngle, float longAxis, float shortAxis) |
| Fills a rotated ellipse. | |
| None | FilledRotatedEllipse (self, eVision.EEllipse ellipse, eVision.EPen pen, eVision.EBrush brush) |
| Fills a rotated ellipse. | |
| None | FilledRotatedEllipse (self, eVision.EEllipse ellipse, eVision.EPen pen) |
| Fills a rotated ellipse. | |
| None | FilledRotatedEllipse (self, eVision.EEllipse ellipse) |
| Fills a rotated ellipse. | |
| None | DrawMask (self, eVision.EBaseROI mask, eVision.EBrush brush) |
| Draws a mask with a brush. | |
| None | DrawMask (self, eVision.EBaseROI mask) |
| Draws a mask with a brush. | |
| None | DrawMask (self, eVision.EBaseROI mask, float orgX, float orgY, float width, float height, eVision.EBrush brush) |
| Draws a mask with a brush. | |
| None | DrawMask (self, eVision.EBaseROI mask, float orgX, float orgY, float width, float height) |
| Draws a mask with a brush. | |
Draw adapter using GDIPlus.
Remarks:
License(s): None
This class was renamed eVision.EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| None eVision.EGDIPlusDrawAdapter.__init__ | ( | self, | |
| ctypes.c_void_p | dc ) |
Construct the eVision.EGDIPlusDrawAdapter from a graphics context.
| dc | The graphics contexts the eVision.EGDIPlusDrawAdapter will use. |