Draw adapter using GDIPlus. More...
#include <eVision/Easy/EGDIPlusDrawAdapter.h>
Public Member Functions | |
| EGDIPlusDrawAdapter (HDC dc) | |
| Construct the EGDIPlusDrawAdapter from a graphics context. | |
| virtual | ~EGDIPlusDrawAdapter () throw () |
| EGDIPlusDrawAdapter (CppWrapperInternal::InternalConstructor) | |
| Public Member Functions inherited from eVision::EWindowsDrawAdapter | |
| EWindowsDrawAdapter (HDC 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. | |
| virtual | ~EWindowsDrawAdapter () throw () |
| virtual void | DrawPoint (int32_t x1, int32_t y1, eVision::EPen pen) |
| Draws a point at the given coordinate. | |
| virtual void | DrawPoint (int32_t x1, int32_t y1) |
| Draws a point at the given coordinate. | |
| virtual void | Line (int32_t x1, int32_t y1, int32_t x2, int32_t y2, eVision::EPen pen) |
| Draws a line between two points. | |
| virtual void | Line (int32_t x1, int32_t y1, int32_t x2, int32_t y2) |
| Draws a line between two points. | |
| virtual void | Arc (int32_t orgX, int32_t orgY, int32_t width, int32_t height, float startAngle, float amplitude, eVision::EPen pen) |
| Draws an arc defined by a rectangle, angle, and amplitude. | |
| virtual void | Arc (int32_t orgX, int32_t orgY, int32_t width, int32_t height, float startAngle, float amplitude) |
| Draws an arc defined by a rectangle, angle, and amplitude. | |
| virtual void | Rectangle (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen) |
| Draws a rectangle. | |
| virtual void | Rectangle (int32_t orgX, int32_t orgY, int32_t width, int32_t height) |
| Draws a rectangle. | |
| virtual void | Polygon (const std::vector< eVision::EPoint > &points, eVision::EPen pen) |
| Draws a polygon. | |
| virtual void | Polygon (const std::vector< eVision::EPoint > &points) |
| Draws a polygon. | |
| virtual void | Ellipse (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen) |
| Draws an ellipse. | |
| virtual void | Ellipse (int32_t orgX, int32_t orgY, int32_t width, int32_t height) |
| Draws an ellipse. | |
| virtual void | FilledRectangle (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen, eVision::EBrush brush) |
| Fills a rectangle. | |
| virtual void | FilledRectangle (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen) |
| Fills a rectangle. | |
| virtual void | FilledRectangle (int32_t orgX, int32_t orgY, int32_t width, int32_t height) |
| Fills a rectangle. | |
| virtual void | FilledEllipse (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen, eVision::EBrush brush) |
| Fills an ellipse. | |
| virtual void | FilledEllipse (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen) |
| Fills an ellipse. | |
| virtual void | FilledEllipse (int32_t orgX, int32_t orgY, int32_t width, int32_t height) |
| Fills an ellipse. | |
| virtual void | FilledPolygon (const std::vector< eVision::EPoint > &points, eVision::EPen pen, eVision::EBrush brush) |
| Fills a polygon. | |
| virtual void | FilledPolygon (const std::vector< eVision::EPoint > &points, eVision::EPen pen) |
| Fills a polygon. | |
| virtual void | FilledPolygon (const std::vector< eVision::EPoint > &points) |
| Fills a polygon. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y, float orientation, eVision::EBrush textBrush, eVision::ETextSizeConstraint constraint) |
| Draws a text. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y, float orientation, eVision::EBrush textBrush) |
| Draws a text. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y, float orientation) |
| Draws a text. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, float orientation, eVision::EBrush textBrush, eVision::EBrush backgroundBrush, eVision::ETextSizeConstraint constraint) |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, float orientation, eVision::EBrush textBrush, eVision::EBrush backgroundBrush) |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, float orientation, eVision::EBrush textBrush) |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, float orientation) |
| Draws a text with a background. | |
| virtual void | Image (const eVision::EBaseROI &image, float orgX, float orgY, float width, float height) |
| Draws an image. | |
| virtual void | Image (const eVision::EROIBW8 &image, eVision::EC24Vector *pColorScale, float orgX, float orgY, float width, float height) |
| Draws an image. | |
| virtual void | Image (const eVision::EROIBW8 &image, eVision::EBW8Vector *pColorScale, float orgX, float orgY, float width, float height) |
| Draws an image. | |
| virtual eVision::EPoint | GetTextSize (const std::string &text) |
| Size of the given text using the default font (EWindowsDrawAdapter::SetFont). | |
| virtual void | UseCurrentPen () |
| Uses the current GDI pen. | |
| virtual void | UseCurrentBrush () |
| Use the current pen set in the drawing framework. | |
| virtual void | SetPen (const eVision::EPen &pen) |
| Default pen. | |
| virtual void | SetBrush (const eVision::EBrush &brush) |
| Default brush. | |
| virtual void | SetFont (const eVision::EFont &font) |
| Default font. | |
| HDC | GetHDC () |
| Gets the HDC associated with this instance of EWindowsDrawAdapter. | |
| void | Close () |
| Closes the attached drawing context, if the current instance was initialized from an image. | |
| virtual int32_t | ComputeTextSize (const std::string &text, int32_t desiredWidth) |
| Computes text size for given constraint. Constraint is the desired total width of the text to draw. | |
| EWindowsDrawAdapter (CppWrapperInternal::InternalConstructor) | |
| Public Member Functions inherited from eVision::EDrawAdapter | |
| virtual | ~EDrawAdapter () throw () |
| virtual void | Polygon (const eVision::EPolygon &polygon, eVision::EPen pen) |
| Draws a polygon. | |
| virtual void | Polygon (const eVision::EPolygon &polygon) |
| Draws a polygon. | |
| void | Ellipse (const eVision::EEllipse &ellipse, eVision::EPen pen) |
| Draws an ellipse. | |
| void | Ellipse (const 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 (const eVision::EEllipse &ellipse, bool drawDiagonals, eVision::EPen pen) |
| Draws a rotated ellipse. | |
| void | RotatedEllipse (const eVision::EEllipse &ellipse, bool drawDiagonals) |
| Draws a rotated ellipse. | |
| void | FilledEllipse (const eVision::EEllipse &ellipse, eVision::EPen pen, eVision::EBrush brush) |
| Fills an ellipse. | |
| void | FilledEllipse (const eVision::EEllipse &ellipse, eVision::EPen pen) |
| Fills an ellipse. | |
| void | FilledEllipse (const 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 (const eVision::EEllipse &ellipse, eVision::EPen pen, eVision::EBrush brush) |
| Fills a rotated ellipse. | |
| void | FilledRotatedEllipse (const eVision::EEllipse &ellipse, eVision::EPen pen) |
| Fills a rotated ellipse. | |
| void | FilledRotatedEllipse (const eVision::EEllipse &ellipse) |
| Fills a rotated ellipse. | |
| virtual void | FilledPolygon (const eVision::EPolygon &polygon, eVision::EPen pen, eVision::EBrush brush) |
| Fills a polygon. | |
| virtual void | FilledPolygon (const eVision::EPolygon &polygon, eVision::EPen pen) |
| Fills a polygon. | |
| virtual void | FilledPolygon (const eVision::EPolygon &polygon) |
| Fills a polygon. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y, eVision::EBrush textBrush, eVision::ETextSizeConstraint constraint) |
| Draws a text. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y, eVision::EBrush textBrush) |
| Draws a text. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y) |
| Draws a text. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, eVision::EBrush textBrush, eVision::EBrush backgroundBrush, eVision::ETextSizeConstraint constraint) |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, eVision::EBrush textBrush, eVision::EBrush backgroundBrush) |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, eVision::EBrush textBrush) |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y) |
| Draws a text with a background. | |
| virtual void | Image (const eVision::EBaseROI &image) |
| Draws an image. | |
| virtual void | Image (const eVision::EROIBW8 &image, eVision::EBW8Vector *pColorScale) |
| Draws an image. | |
| virtual void | Image (const eVision::EROIBW8 &image, eVision::EC24Vector *pColorScale) |
| Draws an image. | |
| virtual void | DrawMask (const eVision::EBaseROI &mask, const eVision::EBrush &brush) |
| Draws a mask with a brush. | |
| virtual void | DrawMask (const eVision::EBaseROI &mask) |
| Draws a mask with a brush. | |
| virtual void | DrawMask (const eVision::EBaseROI &mask, float orgX, float orgY, float width, float height, const eVision::EBrush &brush) |
| Draws a mask with a brush. | |
| virtual void | DrawMask (const eVision::EBaseROI &mask, float orgX, float orgY, float width, float height) |
| Draws a mask with a brush. | |
| virtual eVision::EPen | GetPen () const |
| Default pen. | |
| virtual eVision::EBrush | GetBrush () const |
| Default brush. | |
| virtual eVision::EFont | GetFont () const |
| Default font. | |
| EDrawAdapter (CppWrapperInternal::InternalConstructor) | |
Additional Inherited Members | |
| Public Attributes inherited from eVision::EDrawAdapter | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Draw adapter using GDIPlus.
License(s): None
This class was renamed EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| eVision::EGDIPlusDrawAdapter::EGDIPlusDrawAdapter | ( | HDC | dc | ) |
Construct the EGDIPlusDrawAdapter from a graphics context.
| dc | The graphics contexts the EGDIPlusDrawAdapter will use. |
|
virtual | ||||||||||||
| eVision::EGDIPlusDrawAdapter::EGDIPlusDrawAdapter | ( | CppWrapperInternal::InternalConstructor | ) |