Holds print cropping configuration.
More...
#include <PrintSegment.h>
Holds print cropping configuration.
◆ PrintCropConfiguration()
◆ EnableAlignedCropping()
| void EnableAlignedCropping |
( |
bool | aligned | ) |
|
|
inline |
Enable Aligned Cropping.
This function activates aligned cropping based on the provided argument.
- Parameters
-
| aligned | enable aligned crop
- When set to true, the cropping aligns the rotated rectangle, positioning its top-left point at [0,0] in the cropped image.
- When set to false, the cropping involves the bounding rectangle of the rotated rectangle.
|
◆ GetBackgroundColor()
| RGBA GetBackgroundColor |
( |
| ) |
const |
|
inlinenodiscard |
It provides background color for rounding box area that is out of image.
- Returns
- background color for rounding box area that is out of image
◆ GetImageHeight()
It gets output image height.
- Returns
- output image height
◆ GetImageWidth()
It gets output image width.
- Returns
- output image width
◆ IsAlignedCroppingEnabled()
| bool IsAlignedCroppingEnabled |
( |
| ) |
const |
|
inlinenodiscard |
Get Aligned Crop Configuration.
- Returns
- The current state of the aligned cropping flag.
◆ SetBackgroundColor()
| void SetBackgroundColor |
( |
RGBA | color | ) |
|
|
inline |
It sets background color rounding box area that is out of image.
- Parameters
-
◆ SetImageDimensions()
Function sets output image dimension.
The given rectangle is cropped from image and paste to output image with given dimensions.
- Parameters
-
| width | - width of output image |
| height | - height of output image |
- Exceptions
-
| EnrollmentInvalidArgumentException | when width is 0 |
| EnrollmentInvalidArgumentException | when height is 0 |
The documentation for this class was generated from the following file: