-
- All Implemented Interfaces:
-
com.otaliastudios.cameraview.filter.Filter,com.otaliastudios.cameraview.filter.OneParameterFilter
public interface TwoParameterFilter implements OneParameterFilter
A special Filter that accepts two floats parameters. This is done by extending OneParameterFilter. 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 voidsetParameter2(float value)Sets the second parameter.The value should always be between 0 and 1. abstract floatgetParameter2()Returns the second parameter.The returned value should always be between 0 and 1. -
Methods inherited from class com.otaliastudios.cameraview.filter.OneParameterFilter
getParameter1, setParameter1 -
Methods inherited from class com.otaliastudios.cameraview.filter.Filter
copy, draw, getFragmentShader, getVertexShader, onCreate, onDestroy, setSize -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setParameter2
abstract void setParameter2(float value)
Sets the second parameter.The value should always be between 0 and 1.
- Parameters:
value- parameter
-
getParameter2
abstract float getParameter2()
Returns the second parameter.The returned value should always be between 0 and 1.
-
-
-
-