- (void)setBeautyStyle:(TXBeautyStyle)level
Parameter | Type | Description |
level | TXBeautyStyle | Beauty filter style. TXBeautyStyleSmooth indicates smooth; TXBeautyStyleNature indicates natural; and TXBeautyStylePitu indicates misty. |
- (void)setFilter:(TXImage *)image
TXLiteAVDemo/Resource/Beauty/filter/FilterResource.bundle
.- (void)setFilterStrength:(float)strength
Parameter | Type | Description |
strength | float | Value range: 0-1. The larger the value, the more obvious the effect. Default value: 0.5. |
- (void)setGreenScreenFile:(NString *)file
Parameter | Type | Description |
file | NString * | Path to the video file, which can be in MP4 format. nil: disable the effect. |
- (void)setBeautyLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the beauty filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setWhitenessLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the skin brightening filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setRuddyLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the rosy skin filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setEyeScaleLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the eye enlarging filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setFaceSlimLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the face slimming filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setFaceVLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the chin slimming filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setChinLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the jaw shrinking or expanding filter. Value range: -9 to 9. 0 means disabling the filter. Values less than 0 mean shrinking the jaw, and values greater than 0 mean expanding the jaw. |
- (void)setFaceShortLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the face shortening filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setNoseSlimLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the nose slimming filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setEyeLightenLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the eye brightening filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setToothWhitenLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the teeth whitening filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setWrinkleRemoveLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the wrinkle removal filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setPounchRemoveLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the eye bag removal filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setSmileLinesRemoveLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the smile line removal filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setForeheadLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the hairline lowering filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the lower the hairline. |
- (void)setEyeDistanceLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the eye distance shortening filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the shorter the eye distance. |
- (void)setEyeAngleLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the eye tilting filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more upward the outer eye corners, and the more downward the inner eye corners. |
- (void)setMouthShapeLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the mouth narrowing filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the smaller the mouth. |
- (void)setNoseWingLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the nose wing narrowing filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the smaller the nose wing. |
- (void)setNosePositionLevel:(float)level
Parameter | Type | Description |
level | float | Nose position level. Value range: 0-9. 0 means disabling the filter. The larger the value, the lower the nose position. |
- (void)setLipsThicknessLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the lip thickening filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the thicker the lips. |
- (void)setFaceBeautyLevel:(float)level
Parameter | Type | Description |
level | float | Strength of the face shape filter. Value range: 0-9. 0 means disabling the filter. The larger the value, the more obvious the effect. |
- (void)setMotionTmpl:(nullable NSString *)tmplName inDir:(nullable NSString *)tmplDir
Parameter | Type | Description |
tmplDir | NSString * | Directory of the animated effect. |
tmplName | NSString * | Animated effect name. |
- (void)setMotionMute:(BOOL)motionMute
Parameter | Type | Description |
motionMute | BOOL | YES: mute. NO: unmute. |
Was this page helpful?