-
- All Implemented Interfaces:
-
com.otaliastudios.cameraview.filter.Filter
public interface OneParameterFilter implements Filter
A special Filter that accepts a float parameter. The parameters will always be between 0F and 1F, so subclasses should map this range to their internal range if needed. A standardized range is useful for different applications. For example: - Filter parameters can be easily mapped to gestures since the range is fixed - BaseFilter can use this setters and getters to make a filter copy
-
-
Method Summary
Modifier and Type Method Description abstract voidsetParameter1(float value)Sets the parameter.The value should always be between 0 and 1. abstract floatgetParameter1()Returns the parameter.The returned value should always be between 0 and 1. -
-
Method Detail
-
setParameter1
abstract void setParameter1(float value)
Sets the parameter.The value should always be between 0 and 1.
- Parameters:
value- parameter
-
getParameter1
abstract float getParameter1()
Returns the parameter.The returned value should always be between 0 and 1.
-
-
-
-