WatermarkBridge class abstract
Interface for adding watermarks to images.
This interface defines methods for adding both text and image watermarks to images.
- Inheritance
-
- Object
- PlatformInterface
- WatermarkBridge
- Implementers
Constructors
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()
-
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.
-
addTextWatermark(
String filePath, String text, int x, int y, int textSize, Color color, bool isNeedRotateToPortrait, 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()
-
addTextWatermarkUint8List(
String filePath, Uint8List? bytes, String text, int x, int y, int textSize, bool isNeedRotateToPortrait, 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.
-
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 Properties
- instance ↔ WatermarkBridge
-
getter/setter pair