WatermarkConfig

Used to configure watermark-related information.

public class WatermarkConfig {
  public static final int WATERMARK_TYPE_IMAGE = 0;
  public static final int WATERMARK_TYPE_BUFFER = 1;
  public String id;
  public int type;
  public WatermarkBuffer buffer = new WatermarkBuffer();
  public String imageUrl;
  public WatermarkOptions options = new WatermarkOptions();
}
Since
Available since v4.6.0.

Properties

WATERMARK_TYPE_IMAGE
Specifies the watermark type as image.
WATERMARK_TYPE_BUFFER
Specifies the watermark type as memory buffer.
id
The unique identifier of the watermark, usually generated using UUID.
type
The watermark type:
  • WATERMARK_TYPE_IMAGE: Image type.
  • WATERMARK_TYPE_BUFFER: Buffer type.
buffer
The buffer containing watermark image data. See WatermarkBuffer.
imageUrl
The URL used to load the watermark image.
options
Options that define the position and size of the watermark. See WatermarkOptions.