ImageWatermarkOptions class

Image watermark options

Inheritance

Constructors

ImageWatermarkOptions.new({int scale = 50, WatermarkPosition position = WatermarkPosition.center, PageRange pages = const PageRange.allPages(), int opacity = 30, int rotation = 45, int? customX, int? customY})
Constructor

Properties

customX int?
Custom X position (percentage, 0-100, only used when position is custom)
finalinherited
customY int?
Custom Y position (percentage, 0-100, only used when position is custom)
finalinherited
hashCode int
The hash code for this object.
no setterinherited
opacity int
Opacity of the watermark (0-100)
finalinherited
pages PageRange
Page range to apply the watermark to
finalinherited
position WatermarkPosition
Position of the watermark
finalinherited
rotation int
Rotation angle for the watermark (0-360)
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale int
Scale of the image (percentage, 0-100)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toParams() Map<String, String>
Convert to API parameters
override
toString() String
A string representation of this object.
inherited

Operators

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