WatermarkConfig class
Configuration for watermark application on scanned images.
Constructors
- WatermarkConfig({required String text, WatermarkPosition position = WatermarkPosition.center, double opacity = 0.3, double rotationDegrees = -45.0, double fontSizeFactor = 1.0, int colorArgb = 0x4D808080, int margin = 20, int tileSpacing = 100})
-
const
- WatermarkConfig.confidential({double opacity = 0.25})
-
Creates a confidentiality watermark preset.
factory
- WatermarkConfig.copy({double opacity = 0.15})
-
Creates a copy protection watermark preset.
factory
- WatermarkConfig.draft({double opacity = 0.2})
-
Creates a draft document watermark preset.
factory
- WatermarkConfig.timestamp({DateTime? dateTime, WatermarkPosition position = WatermarkPosition.bottomRight})
-
Creates a custom timestamp watermark.
factory
Properties
- colorArgb → int
-
Watermark color as ARGB integer (default: semi-transparent gray).
final
- fontSizeFactor → double
-
Font size factor (1.0 = standard size, 2.0 = double size).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- margin → int
-
Margin in pixels from image edges (for corner positions).
final
- opacity → double
-
Opacity of the watermark (0.0 = invisible, 1.0 = fully opaque).
final
- position → WatermarkPosition
-
Position of the watermark on the image.
final
- rotationDegrees → double
-
Rotation angle in degrees (only used for WatermarkPosition.diagonal).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
Watermark text to overlay.
final
- tileSpacing → int
-
Spacing between tiles (only used for WatermarkPosition.tiled).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited