EWindowsDrawAdapter Class

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

Remarks

It is recommended to call EWindowsDrawAdapter::Close after using this class.

Base Class:EDrawAdapter

Derived Class(es):EGDIPlusDrawAdapter

Namespace: Euresys::Open_eVision

Constructors

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.

Properties

Gets the HDC associated with this instance of EWindowsDrawAdapter.

Default brush.

Default font.

Default pen.

Methods

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

Draws a text with a background.

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 In a general content, the term object should be understood with the meaning of a class instance. In EasyObject, an object is a maximally-sized area of adjacent connected pixels belonging to the layer foreground.. 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.

Draws a point at the given coordinate.

Draws an ellipse.

Fills an ellipse.

Fills a polygon.

Fills a rectangle.

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

Draws an image.

Draws a line between two points.

Draws a polygon.

Draws a rectangle.

Draws a text.

Use the current pen set in the drawing framework.

Uses the current GDI pen.

EWindowsDrawAdapter Class

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.

Remarks

It is recommended to call EWindowsDrawAdapter.Close after using this class.

Base Class:EDrawAdapter

Derived Class(es):EGDIPlusDrawAdapter

Namespace: Euresys.Open_eVision

Constructors

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.

Properties

Default brush.

Default font.

Gets the HDC associated with this instance of EWindowsDrawAdapter.

Default pen.

Methods

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

Draws a text with a background.

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.

Draws a point at the given coordinate.

Draws an ellipse.

Fills an ellipse.

Fills a polygon.

Fills a rectangle.

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

Draws an image.

Draws a line between two points.

Draws a polygon.

Draws a rectangle.

Draws a text.

Use the current pen set in the drawing framework.

Uses the current GDI pen.

EWindowsDrawAdapter Class

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.

Remarks

It is recommended to call EWindowsDrawAdapter.Close after using this class.

Base Class:EDrawAdapter

Derived Class(es):EGDIPlusDrawAdapter

Module: open_evision

Constructors

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.

Properties

Default brush.

Default font.

Gets the HDC associated with this instance of EWindowsDrawAdapter.

Default pen.

Methods

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.

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

Draws a text with a background.

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.

Draws a point at the given coordinate.

Draws an ellipse.

Fills an ellipse.

Fills a polygon.

Fills a rectangle.

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

Draws an image.

Draws a line between two points.

Draws a polygon.

Draws a rectangle.

Draws a text.

Use the current pen set in the drawing framework.

Uses the current GDI pen.