NERtcVirtualBackgroundSource class

自定义背景图像

Constructors

NERtcVirtualBackgroundSource({required int backgroundSourceType, required int color, String source = '', required int blur_degree})

Properties

backgroundSourceType int
自定义背景图片的类型。 请参阅VirtualBackgroundSourceType
getter/setter pair
blur_degree int
自定义背景图的虚化程度,请参阅BlurDegree
getter/setter pair
color int
自定义背景图像的颜色。格式为 RGB 定义的十六进制整数,不带 # 号。 例如 0xFFB6C1 代表浅粉色。默认值为 0xFFFFFF,表示白色。取值范围是 0x000000,0xFFFFFF。如果该值无效,SDK 将原始背景图片替换为白色的图片
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source String
自定义背景图片的本地绝对路径。支持 PNG 和 JPG 格式
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited