WatermarkConfig
Used to configure watermark information.
public class WatermarkConfig
{
public string id;
public WATERMARK_SOURCE_TYPE type;
public WatermarkBuffer buffer;
public WatermarkTimestamp timestamp;
public WatermarkLiteral literal;
public string imageUrl;
public WatermarkOptions options;
public WatermarkConfig()
{
this.id = "";
this.type = WATERMARK_SOURCE_TYPE.IMAGE;
this.imageUrl = "";
}
public WatermarkConfig(string id, WATERMARK_SOURCE_TYPE type, WatermarkBuffer buffer, WatermarkTimestamp timestamp, WatermarkLiteral literal, string imageUrl, WatermarkOptions options)
{
this.id = id;
this.type = type;
this.buffer = buffer;
this.timestamp = timestamp;
this.literal = literal;
this.imageUrl = imageUrl;
this.options = options;
}
}
- Since
- Available since v4.6.2.
Properties
- id
- Unique identifier for the watermark. It is recommended to use a UUID.
- type
- Type of the watermark. See WATERMARK_SOURCE_TYPE.
- buffer
- Buffer of the watermark. See WatermarkBuffer.
- timestamp
- Timestamp of the watermark.
Note: (Linux only)
- literal
- Text content of the watermark.
Note: (Linux only)
- imageUrl
- URL of the watermark image file. Default is
NULL. - options
- Configuration options for the watermark. See WatermarkOptions.