NERtc Unity SDK  V4.5.907
Public Attributes | List of all members
nertc.RtcTextWatermarkConfig Struct Reference

Public Attributes

string content
 
string fontPath
 
int fontSize
 
int fontColor
 
int offsetX
 
int offsetY
 
int wmColor
 
int wmWidth
 
int wmHeight
 

Detailed Description

Parameters for text watermarks.
You can add up to 10 text watermarks.

Member Data Documentation

◆ content

string nertc.RtcTextWatermarkConfig.content

The text content.

Note
  • The length of the string is unlimited. The final display is affected by the font size and the size of the watermark frame. The part beyond the watermark frame is not displayed.
  • If the width of the watermark frame is set, when the length of the text content exceeds the width of the watermark frame, the text automatically wraps. If the text exceeds the height of the watermark frame, the excess part is not displayed.
  • When the width and height of the watermark frame are not set, the text does not wrap, and the part beyond the watermark frame is not be displayed.

◆ fontPath

string nertc.RtcTextWatermarkConfig.fontPath

The font path. If this setting is left empty, the default system font is used.

◆ fontSize

int nertc.RtcTextWatermarkConfig.fontSize

The font size. The default value is 10, equivalent to 10 x 15 lb on a 144 dpi device.

◆ fontColor

int nertc.RtcTextWatermarkConfig.fontColor

The font color. ARGB format.

◆ offsetX

int nertc.RtcTextWatermarkConfig.offsetX

The horizontal distance between the upper left corner of the watermark and the upper left corner of the video canvas. Unit: pixels.

◆ offsetY

int nertc.RtcTextWatermarkConfig.offsetY

The vertical distance between the upper left corner of the watermark and the upper left corner of the video canvas. Unit: pixels.

◆ wmColor

int nertc.RtcTextWatermarkConfig.wmColor

The background color in the watermark frame. ARGB format. Transparency setting is supported.

◆ wmWidth

int nertc.RtcTextWatermarkConfig.wmWidth

The width of the watermark frame. Unit: pixels. The default value is 0, which indicates no watermark frame.

◆ wmHeight

int nertc.RtcTextWatermarkConfig.wmHeight

The height of the watermark frame. Unit: pixels. The default value is 0, which indicates no watermark frame.


The documentation for this struct was generated from the following file: