BeautyOptions

Beauty effect 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);
  }

Properties

lighteningContrastLevel
Contrast level, usually used together with lighteningLevel. The higher the value, the greater the contrast. See LighteningContrastLevel.
lighteningLevel
Whitening level, range is [0.0, 1.0], where 0.0 means original brightness. Default is 0.0. The higher the value, the higher the whitening level.
smoothnessLevel
Smoothing level, range is [0.0, 1.0], where 0.0 means original smoothness. Default is 0.0. The higher the value, the more smoothing is applied.
rednessLevel
Redness level, range is [0.0, 1.0], where 0.0 means original redness. Default is 0.0. The higher the value, the more redness is applied.
sharpnessLevel
Sharpness level, range is [0.0, 1.0], where 0.0 means original sharpness. Default is 0.0. The higher the value, the more sharpening is applied.