Create ThreeParameterFilter

pull/672/head
Like1995 6 years ago committed by GitHub
parent 129b43e657
commit 46e57ee72d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 31
      cameraview/src/main/java/com/otaliastudios/cameraview/filter/ThreeParameterFilter

@ -0,0 +1,31 @@
package com.otaliastudios.cameraview.filter;
/**
* A special {@link Filter} that accepts two floats parameters.
* This is done by extending {@link 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
* - {@link BaseFilter} can use this setters and getters to make a filter copy
*/
public interface ThreeParameterFilter extends TwoParameterFilter {
/**
* Sets the third parameter.
* The value should always be between 0 and 1.
*
* @param value parameter
*/
void setParameter3(float value);
/**
* Returns the third parameter.
* The returned value should always be between 0 and 1.
*
* @return parameter
*/
float getParameter3();
}
Loading…
Cancel
Save