Package 

Interface OneParameterFilter

  • 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 void setParameter1(float value) Sets the parameter.The value should always be between 0 and 1.
      abstract float getParameter1() Returns the parameter.The returned value should always be between 0 and 1.
      • 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

      • 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.