BeautyOptions

Image enhancement options.

class BeautyOptions {
    const BeautyOptions(
        {this.lighteningContrastLevel,
        this.lighteningLevel,
        this.smoothnessLevel,
        this.rednessLevel,
        this.sharpnessLevel});
  
    @JsonKey(name: 'lighteningContrastLevel')
    final LighteningContrastLevel? lighteningContrastLevel;
    @JsonKey(name: 'lighteningLevel')
    final double? lighteningLevel;
    @JsonKey(name: 'smoothnessLevel')
    final double? smoothnessLevel;
    @JsonKey(name: 'rednessLevel')
    final double? rednessLevel;
    @JsonKey(name: 'sharpnessLevel')
    final double? sharpnessLevel;
    factory BeautyOptions.fromJson(Map<String, dynamic> json) =>
        _$BeautyOptionsFromJson(json);
    Map<String, dynamic> toJson() => _$BeautyOptionsToJson(this);
  }

Attributes

lighteningContrastLevel

The contrast level, used with the lighteningLevel parameter. The larger the value, the greater the contrast between light and dark. See LighteningContrastLevel.

lighteningLevel

The brightening level, in the range [0.0,1.0], where 0.0 means the original brightening. The default value is 0.0. The higher the value, the greater the degree of brightening.

smoothnessLevel

The smoothness level, in the range [0.0,1.0], where 0.0 means the original smoothness. The default value is 0.0. The greater the value, the greater the smoothness level.

rednessLevel

The redness level, in the range [0.0,1.0], where 0.0 means the original redness. The default value is 0.0. The larger the value, the greater the redness level.

sharpnessLevel

The sharpness level, in the range [0.0,1.0], where 0.0 means the original sharpness. The default value is 0.0. The larger the value, the greater the sharpness level.