Public Member Functions | |
| Painter (Image image) | |
| Constructs a Painter with the target image. | |
| void | Draw (IDrawable drawable) |
| Draws the specified drawable object onto the image. | |
Properties | |
| Color | Color = new(ColorConstant.Red) [get, set] |
| The color used for painting. Defaults to ColorConstant.Red. | |
| Opacity | Opacity = new(100) [get, set] |
| The opacity used for painting. Defaults to 100 (fully opaque). | |
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 Color and Opacity. If not explicitly configured, default values from DrawingOptions are applied.
Constructs a Painter with the target image.
| image | The image all painting operations are performed on. |
|
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. |
|
getset |
The color used for painting. Defaults to ColorConstant.Red.
The opacity used for painting. Defaults to 100 (fully opaque).