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.
Attributes
- id
- Unique identifier for the watermark, usually generated using UUID.
- type
- Type of the watermark:
WATERMARK_TYPE_IMAGE: image type.WATERMARK_TYPE_BUFFER: Buffer type.
- buffer
- Buffer containing watermark image data. See WatermarkBuffer.
- imageUrl
- URL address used to load the watermark image.
- options
- Options defining the position and size of the watermark. See WatermarkOptions.
- WATERMARK_TYPE_IMAGE
- Specifies the watermark type as image.
- WATERMARK_TYPE_BUFFER
- Specifies the watermark type as buffer.