WatermarkTimestamp

Used to configure timestamp watermark.

    public class WatermarkTimestamp
    {
        public int fontSize;
        public string fontFilePath;
        public int strokeWidth;
        public string format;
        public WatermarkTimestamp()
        {
            this.fontSize = 10;
            this.fontFilePath = "";
            this.strokeWidth = 1;
            this.format = "";
        }
        public WatermarkTimestamp(int fontSize, string fontFilePath, int strokeWidth, string format)
        {
            this.fontSize = fontSize;
            this.fontFilePath = fontFilePath;
            this.strokeWidth = strokeWidth;
            this.format = format;
        }
    }
Since
Available since v4.6.2.
Note: (Linux only)

Properties

fontSize
Font size of the timestamp. Default is 10.
fontFilePath
Path to the font file for the timestamp. Default is NULL. The font file must be in .ttf format. If not set, the SDK uses the system default font (if available).
Note: If used asynchronously, copy the path to memory that will not be released.
strokeWidth
Stroke width of the timestamp. Default is 1.
format
Format of the timestamp. Default is %F %X. The format follows the C standard library function strftime. See strftime.
Note: If used asynchronously, copy the format string to memory that will not be released.