public abstract class AbstractStyle extends java.lang.Object implements IBeautyStyle
| Modifier and Type | Field and Description |
|---|---|
protected float[] |
mParams |
protected int |
mProgress |
protected float[] |
sDefaultParams |
protected float[] |
sMaxParams |
protected float[] |
sMinParams |
| Constructor and Description |
|---|
AbstractStyle() |
| Modifier and Type | Method and Description |
|---|---|
protected float |
calToRange(float max,
float min,
float middle,
int progress) |
void |
changeParams(int index,
float value)
修改单个美颜参数
|
java.util.Map<java.lang.String,java.lang.String> |
getFilterParams()
返回美颜参数
|
void |
updateProgress(int progress)
根据美颜度调整美颜参数
|
protected float[] sMinParams
protected float[] sDefaultParams
protected float[] sMaxParams
protected float[] mParams
protected int mProgress
public java.util.Map<java.lang.String,java.lang.String> getFilterParams()
IBeautyStylegetFilterParams in interface IBeautyStylepublic void changeParams(int index,
float value)
IBeautyStylechangeParams in interface IBeautyStylepublic void updateProgress(int progress)
IBeautyStyleupdateProgress in interface IBeautyStyleprotected float calToRange(float max,
float min,
float middle,
int progress)