|
Enrollment 28.2.0
|
Represents an image mask defined by a polygonal shape. More...
#include <ImageMask.h>
Public Member Functions | |
| PolygonImageMask (Polygon polygon, ImageMaskConfiguration config) | |
| Constructs a PolygonImageMask with a specified polygon and configuration. | |
| PolygonImageMask (Polygon polygon, ImageMaskConfiguration config, ImageBlurType blur) | |
| Constructs a PolygonImageMask with a specified polygon and configuration. | |
| void | MaskWith (ImageMasker &masker) const override |
| Applies the polygonal mask to an image using the provided ImageMasker. | |
Represents an image mask defined by a polygonal shape.
It is a convenient class for masking and blurring polygon.
|
inline |
Constructs a PolygonImageMask with a specified polygon and configuration.
The polygon defines the shape and bounds of the mask, enabling masking of complex and irregular shapes. The configuration specifies additional parameters such as mask color and mask type, enhancing the flexibility and applicability of the mask.
| polygon | The Polygon object that defines the shape and bounds of the mask. |
| config | The ImageMaskConfiguration object that contains settings for how the mask should be applied, including blur and mask types. |
|
inline |
Constructs a PolygonImageMask with a specified polygon and configuration.
The polygon defines the shape and bounds of the mask, enabling masking of complex and irregular shapes. The configuration specifies additional parameters such as mask color and mask type, enhancing the flexibility and applicability of the mask.
| polygon | The Polygon object that defines the shape and bounds of the mask. |
| blur | Type of blurring to by applied on mask-to-image transition. |
| config | The ImageMaskConfiguration object that contains settings for how the mask should be applied, including blur and mask types. |
|
inlineoverridevirtual |
Applies the polygonal mask to an image using the provided ImageMasker.
| masker | The ImageMasker instance used to apply the mask to an image. |
Implements ImageMask.
References ImageMasker::BlurPolygon(), ImageMasker::MaskPolygon(), and NO_BORDER_BLURRING.