#include <peak_icv/painting/peak_icv_painter.hpp>
Public Member Functions | |
| Painter (Image &image) | |
| Constructs a Painter with the target image. | |
| void | SetColor (const Color &color) |
| Sets the color for painting. | |
| void | SetOpacity (const Opacity &opacity) |
| Sets the opacity for painting. | |
| Color | GetColor () const |
| Opacity | GetOpacity () const |
| void | Draw (const IDrawable &drawable) const |
| Draws the specified drawable object onto the image. | |
Provides functionality for painting drawable objects on images.
The Painter enables rendering of objects derived from IDrawable onto images. Supported image formats are RGB8, BGR8, RGBa8, and BGRa8.
You can configure drawing properties such as color and opacity using SetColor() and SetOpacity(). If not explicitly configured, default values from detail::DrawingOptions are applied.
Definition at line 44 of file peak_icv_painter.hpp.
Constructs a Painter with the target image.
| image | The image all painting operations are performed on. |
Definition at line 131 of file peak_icv_painter.hpp.
|
inline |
Draws the specified drawable object onto the image.
The following objects can be drawn:
Refer to the documentation of the specific drawable for more details.
| drawable | The object to be drawn. |
Definition at line 135 of file peak_icv_painter.hpp.
|
inline |
Definition at line 121 of file peak_icv_painter.hpp.
|
inline |
Definition at line 126 of file peak_icv_painter.hpp.
|
inline |
Sets the color for painting.
Refer to Color for more information on color configuration.
| color | The color to be set. |
Definition at line 111 of file peak_icv_painter.hpp.
|
inline |
Sets the opacity for painting.
Refer to Opacity for more information on opacity configuration.
| opacity | The opacity to be set. |
Definition at line 116 of file peak_icv_painter.hpp.