WatermarkWeb class

A web implementation of the for adding watermarks to images.

This class provides high-level methods for adding watermarks to images, abstracting the implementation details.

Inheritance

Constructors

WatermarkWeb()
Constructs a WatermarkWeb

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addImageWatermark(String filePath, String watermarkImagePath, int x, int y, int watermarkWidth, int watermarkHeight, int quality, ImageFormat imageFormat) Future<String?>
Adds an image watermark to the image at the specified location with the given parameters. Use just for IOS or Android. For WEB version you should use addImageWatermarkUint8List()
inherited
addImageWatermarkUint8List(String filePath, Uint8List? bytes, Uint8List watermarkImagePath, int x, int y, int watermarkWidth, int watermarkHeight) Future<Uint8List?>
Adds an image watermark to the image at the specified location with the given parameters.
override
addTextWatermark(String filePath, String text, int x, int y, int textSize, Color color, Color? backgroundTextColor, int quality, int? backgroundTextPaddingTop, int? backgroundTextPaddingBottom, int? backgroundTextPaddingLeft, int? backgroundTextPaddingRight, ImageFormat imageFormat) Future<String?>
Adds a text watermark to the image at the specified location with the given parameters. Use just for IOS or Android. For WEB version you should use addTextWatermarkUint8List()
inherited
addTextWatermarkUint8List(String filePath, Uint8List? bytes, String text, int x, int y, int textSize, Color color, Color? backgroundTextColor, int? backgroundTextPaddingTop, int? backgroundTextPaddingBottom, int? backgroundTextPaddingLeft, int? backgroundTextPaddingRight) Future<Uint8List?>
Adds a text watermark to the image at the specified location with the given parameters.
override
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

Static Methods

registerWith(Registrar registrar) → void