Class FeedbackFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class FeedbackFilter extends AbstractBufferedImageOp
A filter which priduces a video feedback effect by repeated transformations.
  • Constructor Details

    • FeedbackFilter

      public FeedbackFilter()
      Construct a FeedbackFilter.
    • FeedbackFilter

      public FeedbackFilter(float distance, float angle, float rotation, float zoom)
      Construct a FeedbackFilter.
      Parameters:
      distance - the distance to move on each iteration
      angle - the angle to move on each iteration
      rotation - the amount to rotate on each iteration
      zoom - the amount to scale on each iteration
  • Method Details

    • setAngle

      public void setAngle(float angle)
      Specifies the angle of each iteration.
      Parameters:
      angle - the angle of each iteration.
      See Also:
    • getAngle

      public float getAngle()
      Returns the angle of each iteration.
      Returns:
      the angle of each iteration.
      See Also:
    • setDistance

      public void setDistance(float distance)
      Specifies the distance to move on each iteration.
      Parameters:
      distance - the distance
      See Also:
    • getDistance

      public float getDistance()
      Get the distance to move on each iteration.
      Returns:
      the distance
      See Also:
    • setRotation

      public void setRotation(float rotation)
      Specifies the amount of rotation on each iteration.
      Parameters:
      rotation - the angle of rotation
      See Also:
    • getRotation

      public float getRotation()
      Returns the amount of rotation on each iteration.
      Returns:
      the angle of rotation
      See Also:
    • setZoom

      public void setZoom(float zoom)
      Specifies the amount to scale on each iteration.
      Parameters:
      zoom - the zoom factor
      See Also:
    • getZoom

      public float getZoom()
      Returns the amount to scale on each iteration.
      Returns:
      the zoom factor
      See Also:
    • setStartAlpha

      public void setStartAlpha(float startAlpha)
      Set the alpha value at the first iteration.
      Parameters:
      startAlpha - the alpha value
      See Also:
    • getStartAlpha

      public float getStartAlpha()
      Get the alpha value at the first iteration.
      Returns:
      the alpha value
      See Also:
    • setEndAlpha

      public void setEndAlpha(float endAlpha)
      Set the alpha value at the last iteration.
      Parameters:
      endAlpha - the alpha value
      See Also:
    • getEndAlpha

      public float getEndAlpha()
      Get the alpha value at the last iteration.
      Returns:
      the alpha value
      See Also:
    • setCentreX

      public void setCentreX(float centreX)
      Set the centre of the effect in the X direction as a proportion of the image size.
      Parameters:
      centreX - the center
      See Also:
    • getCentreX

      public float getCentreX()
      Get the centre of the effect in the X direction as a proportion of the image size.
      Returns:
      the center
      See Also:
    • setCentreY

      public void setCentreY(float centreY)
      Set the centre of the effect in the Y direction as a proportion of the image size.
      Parameters:
      centreY - the center
      See Also:
    • getCentreY

      public float getCentreY()
      Get the centre of the effect in the Y direction as a proportion of the image size.
      Returns:
      the center
      See Also:
    • setCentre

      public void setCentre(Point2D centre)
      Set the centre of the effect as a proportion of the image size.
      Parameters:
      centre - the center
      See Also:
    • getCentre

      public Point2D getCentre()
      Get the centre of the effect as a proportion of the image size.
      Returns:
      the center
      See Also:
    • setIterations

      public void setIterations(int iterations)
      Set the number of iterations.
      Parameters:
      iterations - the number of iterations
      See Also:
    • getIterations

      public int getIterations()
      Get the number of iterations.
      Returns:
      the number of iterations
      See Also:
    • filter

      public BufferedImage filter(BufferedImage src, BufferedImage dst)
    • toString

      public String toString()
      Overrides:
      toString in class Object