WatermarkOptions
Configures the watermark image.
export class WatermarkOptions {
visibleInPreview?: boolean;
positionInLandscapeMode?: Rectangle;
positionInPortraitMode?: Rectangle;
watermarkRatio?: WatermarkRatio;
mode?: WatermarkFitMode;
zOrder?: number;
}
Used to configure the settings for the watermark image to be added.
Properties
- visibleInPreview
- Whether the watermark is visible in the local preview view:
- true: (default) The watermark is visible in the local preview view.
- false: The watermark is not visible in the local preview view.
- positionInLandscapeMode
- When the watermark fit mode is
FitModeCoverPosition, sets the area of the watermark image in landscape mode. See Rectangle. - positionInPortraitMode
- When the watermark fit mode is
FitModeCoverPosition, sets the area of the watermark image in portrait mode. See Rectangle. - watermarkRatio
- When the watermark fit mode is
FitModeUseImageRatio, this parameter sets the watermark coordinates in scaling mode. See WatermarkRatio. - mode
- The fit mode of the watermark. See WatermarkFitMode.
- zOrder
- The z-order of the watermark image. Default is 0.