NERtc UE SDK  V5.4.109
Public 属性 | 所有成员列表
nertc::NERtcVideoWatermarkTextConfig结构体 参考

#include <NertcEngineDefines.h>

Public 属性

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

详细描述

文字水印设置参数。
最多可添加 10 个文字水印。

类成员变量说明

◆ content

char nertc::NERtcVideoWatermarkTextConfig::content[kNERtcMaxBuffLength]

文字内容。

注解
  • 字符串长度无限制。最终显示受字体大小和水印框大小的影响。超出水印框的部分不显示。
  • 如果设置了水印框宽度,当文字内容长度超过水印框宽度时,会自动换行,如果超出水印框高度,超出部分不显示。
  • 未设置水印框宽度和高度时,文字不换行,超出水印框的部分不显示。

◆ font_color

int nertc::NERtcVideoWatermarkTextConfig::font_color

字体颜色。ARGB 格式。

◆ font_name

char nertc::NERtcVideoWatermarkTextConfig::font_name[kNERtcMaxURILength]

字体名称。

◆ font_size

int nertc::NERtcVideoWatermarkTextConfig::font_size

字体大小。默认值为 10,相当于 144 dpi 设备上的 10 x 15 磅。

◆ offset_x

int nertc::NERtcVideoWatermarkTextConfig::offset_x

水印左上角与视频画布左上角的水平距离。单位为像素(pixel)。

◆ offset_y

int nertc::NERtcVideoWatermarkTextConfig::offset_y

水印左上角与视频画布左上角的垂直距离。单位为像素(pixel)。

◆ wm_alpha

int nertc::NERtcVideoWatermarkTextConfig::wm_alpha

水印框内背景颜色透明度

◆ wm_color

int nertc::NERtcVideoWatermarkTextConfig::wm_color

水印框内背景颜色。ARGB格式,支持透明度设置。

◆ wm_height

int nertc::NERtcVideoWatermarkTextConfig::wm_height

水印框的高度。单位为像素(pixel),默认值为 0,表示没有水印框。

◆ wm_width

int nertc::NERtcVideoWatermarkTextConfig::wm_width

水印框的宽度。单位为像素(pixel),默认值为 0,表示没有水印框。


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