WatermarkLiteral
Used to configure text watermark.
public class WatermarkLiteral
{
public int fontSize;
public int strokeWidth;
public string wmLiteral;
public string fontFilePath;
public WatermarkLiteral()
{
this.wmLiteral = "";
this.fontFilePath = "";
this.fontSize = 10;
this.strokeWidth = 1;
}
public WatermarkLiteral(int fontSize, int strokeWidth, string wmLiteral, string fontFilePath)
{
this.fontSize = fontSize;
this.strokeWidth = strokeWidth;
this.wmLiteral = wmLiteral;
this.fontFilePath = fontFilePath;
}
}
- Since
- Available since v4.6.2.
Note: (Linux only)
Properties
- fontSize
- Font size of the text. Default is 10.
- strokeWidth
- Stroke width of the text. Default is 1.
- wmLiteral
- Text content of the watermark. Default is
NULL.Note: If used asynchronously, copy the string to memory that will not be released. - fontFilePath
- Path to the font file. Default is
NULL. The font file should be in .ttf format. If not set, the SDK uses the system default font (if available).Note: If used asynchronously, copy the string to memory that will not be released.