Class NERoomVirtualBackgroundSource
-
- All Implemented Interfaces:
public final class NERoomVirtualBackgroundSource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNERoomVirtualBackgroundSource.BlurDegreepublic classNERoomVirtualBackgroundSource.BackgroundSourceType
-
Field Summary
Fields Modifier and Type Field Description private IntegerbackgroundSourceTypeprivate Integercolorprivate Stringsourceprivate IntegerblurDegree
-
Constructor Summary
Constructors Constructor Description NERoomVirtualBackgroundSource(Integer backgroundSourceType, Integer color, String source, Integer blurDegree)
-
Method Summary
Modifier and Type Method Description final IntegergetBackgroundSourceType()final UnitsetBackgroundSourceType(Integer backgroundSourceType)final IntegergetColor()final UnitsetColor(Integer color)final StringgetSource()final UnitsetSource(String source)final IntegergetBlurDegree()final UnitsetBlurDegree(Integer blurDegree)StringtoString()-
-
Constructor Detail
-
NERoomVirtualBackgroundSource
NERoomVirtualBackgroundSource(Integer backgroundSourceType, Integer color, String source, Integer blurDegree)
- Parameters:
backgroundSourceType- 自定义背景图的类型BackgroundSourceTypecolor- 自定义背景图的颜色。格式为 RGB 定义的十六进制整数,不带 # 号。 例如 0xFFB6C1 代表浅粉色。默认值为 0xFFFFFF,表示白色。取值范围是 0x000000,0xFFFFFF。如果该值无效,SDK 将原始背景图片替换为白色的图片 该参数仅在自定义背景图类型为 BACKGROUND_COLOR 时生效。source- 自定义背景图片的本地绝对路径。支持 PNG 和 JPG 格式。该参数仅在自定义背景图类型为 BACKGROUND_IMG 时生效。blurDegree- 自定义背景图的虚化程度 该参数仅在自定义背景图类型为BlurDegree BACKGROUND_BLUR 时生效。
-
-
Method Detail
-
getBackgroundSourceType
final Integer getBackgroundSourceType()
-
setBackgroundSourceType
final Unit setBackgroundSourceType(Integer backgroundSourceType)
- Parameters:
backgroundSourceType- 自定义背景图的类型BackgroundSourceType
-
setColor
final Unit setColor(Integer color)
- Parameters:
color- 自定义背景图的颜色。格式为 RGB 定义的十六进制整数,不带 # 号。 例如 0xFFB6C1 代表浅粉色。默认值为 0xFFFFFF,表示白色。取值范围是 0x000000,0xFFFFFF。如果该值无效,SDK 将原始背景图片替换为白色的图片 该参数仅在自定义背景图类型为 BACKGROUND_COLOR 时生效。
-
setSource
final Unit setSource(String source)
- Parameters:
source- 自定义背景图片的本地绝对路径。支持 PNG 和 JPG 格式。该参数仅在自定义背景图类型为 BACKGROUND_IMG 时生效。
-
getBlurDegree
final Integer getBlurDegree()
-
setBlurDegree
final Unit setBlurDegree(Integer blurDegree)
- Parameters:
blurDegree- 自定义背景图的虚化程度 该参数仅在自定义背景图类型为BlurDegree BACKGROUND_BLUR 时生效。
-
-
-
-