STSSkinBeautifyFilter
@interface STSSkinBeautifyFilter
GPUImageFilter for beaufity skin.
-
The class method to create a STSSkinBeautifyFilter instance with default skin smoothness level 0.5, brightness level 0.5.
Declaration
Objective-C
+ (nonnull STSSkinBeautifyFilter *)filter; -
The class method to create a STSSkinBeautifyFilter. - parameter: skinSmoothnessLevel The skin smoothness level. - parameter: brightnessLevel The brightness level. - returns: The instance of the STSSkinBeautifyFilter.
Declaration
Objective-C
+ (nonnull STSSkinBeautifyFilter *) filterWithSkinSmoothnessLevel:(CGFloat)skinSmoothnessLevel brightnessLevel:(CGFloat)brightnessLevel;Swift
/*not inherited*/ init!(skinSmoothnessLevel: Any!, brightnessLevel: Any!)Parameters
skinSmoothnessLevelThe skin smoothness level.
brightnessLevelThe brightness level.
Return Value
The instance of the STSSkinBeautifyFilter.
-
The skin smoothness level. The default value is 0.5. Suggested value is between 0 to 2.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) CGFloat skinSmoothnessLevel;Swift
var skinSmoothnessLevel: Int32 { get set } -
The brightness level. The default value is 0.5. Suggested value is between 0 to 1.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite) CGFloat brightnessLevel;Swift
var brightnessLevel: Int32 { get set } -
Using init to create a STSSkinBeautifyFilter instance is unavailable.
Declaration
Objective-C
- (nonnull instancetype)init;Swift
init!() -
Using new to create a STSSkinBeautifyFilter instance is unavailable.
Declaration
Objective-C
+ (nonnull instancetype)new;Swift
class func new() -> Self! -
Using initWithFragmentShaderFromFile to create a STSSkinBeautifyFilter instance is unavailable.
Declaration
Objective-C
- (nonnull instancetype)initWithFragmentShaderFromFile: (nonnull NSString *)fragmentShaderFilename;Swift
init!(fragmentShaderFromFile fragmentShaderFilename: Any!) -
Using initWithFragmentShaderFromString to create a STSSkinBeautifyFilter instance is unavailable.
Declaration
Objective-C
- (nonnull instancetype)initWithFragmentShaderFromString: (nonnull NSString *)fragmentShaderString;Swift
init!(fragmentShaderFromString fragmentShaderString: Any!) -
Using initWithVertexShaderFromString to create a STSSkinBeautifyFilter instance is unavailable.
Declaration
Objective-C
- (nonnull id) initWithVertexShaderFromString:(nonnull NSString *)vertexShaderString fragmentShaderFromString:(nonnull NSString *)fragmentShaderString;Swift
init!(vertexShaderFromString vertexShaderString: Any!, fragmentShaderFromString fragmentShaderString: Any!)
View on GitHub
Install in Dash
STSSkinBeautifyFilter Class Reference