WatermarkManager class
Class responsible for managing watermarks.
This class implements the WatermarkBridge interface and provides methods for adding watermarks to images.
- Inheritance
-
- Object
- PlatformInterface
- WatermarkBridge
- WatermarkManager
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
- watermarkImageChannel → MethodChannel
-
final
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()
override
-
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, 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()
override
-
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.
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