文档中心
语音通话 (Legacy)
API 参考
Java API Reference for Android
Java API Reference for Android
|
| BeautyOptions (int contrastLevel, float lightening, float smoothness, float redness, float sharpness) |
|
◆ BeautyOptions()
io.agora.rtc.video.BeautyOptions.BeautyOptions |
( |
int |
contrastLevel, |
|
|
float |
lightening, |
|
|
float |
smoothness, |
|
|
float |
redness, |
|
|
float |
sharpness |
|
) |
| |
美颜效果选项。
- 参数
-
contrastLevel | 亮度明暗对比度,与 lighteningLevel 参数搭配使用。取值越大,明暗对比越强烈:
|
lightening | 亮度,取值范围为 [0.0, 1.0],其中 0.0 表示原始亮度,默认值为 0.6。可用来实现美白等视觉效果 |
smoothness | 平滑度,取值范围为 [0.0, 1.0],其中 0.0 表示原始平滑等级,默认值为 0.5。可用来实现祛痘、磨皮等视觉效果 |
redness | 红色度,取值范围为 [0.0, 1.0],其中 0.0 表示原始红色度,默认值为 0.1。可用来实现红润肤色等视觉效果 |
sharpness | 锐度,取值范围为 [0.0, 1.0],其中 0.0 表示原始锐化等级, 默认值为 0.3。可用来实现提升画面锐度/清晰度的视觉效果 |
◆ LIGHTENING_CONTRAST_LOW
final int io.agora.rtc.video.BeautyOptions.LIGHTENING_CONTRAST_LOW = 0 |
|
static |
◆ LIGHTENING_CONTRAST_NORMAL
final int io.agora.rtc.video.BeautyOptions.LIGHTENING_CONTRAST_NORMAL = 1 |
|
static |
◆ LIGHTENING_CONTRAST_HIGH
final int io.agora.rtc.video.BeautyOptions.LIGHTENING_CONTRAST_HIGH = 2 |
|
static |
◆ lighteningContrastLevel
int io.agora.rtc.video.BeautyOptions.lighteningContrastLevel |
◆ lighteningLevel
float io.agora.rtc.video.BeautyOptions.lighteningLevel |
美白程度,取值范围为 [0.0,1.0],其中 0.0 表示原始亮度。默认值为 0.6。取值越大,美白程度越大。
◆ smoothnessLevel
float io.agora.rtc.video.BeautyOptions.smoothnessLevel |
磨皮程度,取值范围为 [0.0,1.0],其中 0.0 表示原始磨皮程度。默认值为 0.5。取值越大,磨皮程度越大。
◆ rednessLevel
float io.agora.rtc.video.BeautyOptions.rednessLevel |
红润度,取值范围为 [0.0,1.0],其中 0.0 表示原始红润度。默认值为 0.1。取值越大,红润程度越大。
◆ sharpnessLevel
float io.agora.rtc.video.BeautyOptions.sharpnessLevel |
锐化程度,取值范围为 [0.0,1.0],其中 0.0 表示原始锐度。默认值为 0.3。取值越大,锐化程度越大。
- 自从
- v3.6.0