WatermarkOptions class

Global watermark options.

Constructors

WatermarkOptions(String watermarkURI, {double? size, double? inset, AlignmentMode? alignment})
Creates new WatermarkOptions.

Properties

alignment AlignmentMode?
It defines the layout of the watermark inside the canvas.
final
hashCode int
The hash code for this object.
no setterinherited
inset double?
The relative spacing between the edges of the image/video and the watermark. This value is measured in relation to the smaller side of the transformed image/video that the user is editing. Values outside (0.0, 0.5) will be clamped.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double?
The relative size of the watermark. This value is measured in relation to the smaller side of the transformed image/video that the user is editing and the longer side of the watermark image. Values outside (0.0, 1.0) will be clamped.
final
watermarkURI String
Input image for the watermark. No additional processing is performed on the image. Transparency must be supported by the file itself. If the watermark is the only editing operation to be performed, ExportOptions.forceExport option must be enabled for the change to be applied.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited