Public Member Functions

 BeautyOptions (int contrastLevel, float lightening, float smoothness, float redness)
 

Public Attributes

int lighteningContrastLevel
 
float lighteningLevel
 
float smoothnessLevel
 
float rednessLevel
 

Static Public Attributes

static final int LIGHTENING_CONTRAST_LOW = 0
 
static final int LIGHTENING_CONTRAST_NORMAL = 1
 
static final int LIGHTENING_CONTRAST_HIGH = 2
 

Detailed Description

Sets the image enhancement options.

Constructor & Destructor Documentation

◆ BeautyOptions()

io.agora.rtc.video.BeautyOptions.BeautyOptions ( int  contrastLevel,
float  lightening,
float  smoothness,
float  redness 
)

The image enhancement options.

Parameters
contrastLevelThe contrast level, used with the lighteningLevel parameter:
lighteningThe brightness level. The value ranges from 0.0 (original) to 1.0. The default value is 0.7.
smoothnessThe sharpness level. The value ranges from 0.0 (original) to 1.0. The default value is 0.5. This parameter is usually used to remove blemishes.
rednessThe redness level. The value ranges from 0.0 (original) to 1.0. The default value is 0.1. This parameter adjusts the red saturation level.

Member Data Documentation

◆ LIGHTENING_CONTRAST_HIGH

final int io.agora.rtc.video.BeautyOptions.LIGHTENING_CONTRAST_HIGH = 2
static

2: high contrast for lightening.

◆ LIGHTENING_CONTRAST_LOW

final int io.agora.rtc.video.BeautyOptions.LIGHTENING_CONTRAST_LOW = 0
static

0: low contrast for lightening.

◆ LIGHTENING_CONTRAST_NORMAL

final int io.agora.rtc.video.BeautyOptions.LIGHTENING_CONTRAST_NORMAL = 1
static

1: normal contrast for lightening.

◆ lighteningContrastLevel

int io.agora.rtc.video.BeautyOptions.lighteningContrastLevel

The lightening contrast level, used with lighteningLevel:

◆ lighteningLevel

float io.agora.rtc.video.BeautyOptions.lighteningLevel

The brightness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.7.

◆ rednessLevel

float io.agora.rtc.video.BeautyOptions.rednessLevel

The redness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.1. This parameter adjusts the red saturation level.

◆ smoothnessLevel

float io.agora.rtc.video.BeautyOptions.smoothnessLevel

The sharpness level. The value ranges between 0.0 (original) and 1.0. The default value is 0.5. This parameter is usually used to remove blemishes.