NERtc Windows SDK  V4.4.301
Public 属性 | 所有成员列表
nertc::NERtcTextWatermarkConfig结构体 参考

#include <nertc_engine_defines.h>

Public 属性

char content [kNERtcMaxBuffLength]
 
char font_path [kNERtcMaxURILength]
 
int font_size
 
int font_color
 
int offset_x
 
int offset_y
 
int wm_color
 
int wm_width
 
int wm_height
 

详细描述

Parameters for text watermarks.

You can add up to 10 text watermarks.

类成员变量说明

◆ content

char nertc::NERtcTextWatermarkConfig::content[kNERtcMaxBuffLength]

The text content.

注解
  • 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.

◆ font_color

int nertc::NERtcTextWatermarkConfig::font_color

The font color. ARGB format.

◆ font_path

char nertc::NERtcTextWatermarkConfig::font_path[kNERtcMaxURILength]

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

◆ font_size

int nertc::NERtcTextWatermarkConfig::font_size

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

◆ offset_x

int nertc::NERtcTextWatermarkConfig::offset_x

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

◆ offset_y

int nertc::NERtcTextWatermarkConfig::offset_y

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

◆ wm_color

int nertc::NERtcTextWatermarkConfig::wm_color

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

◆ wm_height

int nertc::NERtcTextWatermarkConfig::wm_height

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

◆ wm_width

int nertc::NERtcTextWatermarkConfig::wm_width

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


该结构体的文档由以下文件生成: