WatermarkConfig

Used to configure watermark-related information.

struct WatermarkConfig {
  const char* id;
  WATERMARK_SOURCE_TYPE type;
  union {
    WatermarkBuffer buffer;
    const char* imageUrl;
  };
  WatermarkOptions options;
  WatermarkConfig() : id(NULL), type(IMAGE), imageUrl(NULL) {}
};
Since:
Available since v4.6.0.

Attributes

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.
imageUrl
URL of the watermark image file. Default value is NULL.
options
Options for the watermark. See WatermarkOptions.