类 FeedbackFilter

  • 所有已实现的接口:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class FeedbackFilter
    extends AbstractBufferedImageOp
    A filter which priduces a video feedback effect by repeated transformations.
    • 构造器概要

      构造器 
      构造器 说明
      FeedbackFilter()
      Construct a FeedbackFilter.
      FeedbackFilter​(float distance, float angle, float rotation, float zoom)
      Construct a FeedbackFilter.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)  
      float getAngle()
      Returns the angle of each iteration.
      java.awt.geom.Point2D getCentre()
      Get the centre of the effect as a proportion of the image size.
      float getCentreX()
      Get the centre of the effect in the X direction as a proportion of the image size.
      float getCentreY()
      Get the centre of the effect in the Y direction as a proportion of the image size.
      float getDistance()
      Get the distance to move on each iteration.
      float getEndAlpha()
      Get the alpha value at the last iteration.
      int getIterations()
      Get the number of iterations.
      float getRotation()
      Returns the amount of rotation on each iteration.
      float getStartAlpha()
      Get the alpha value at the first iteration.
      float getZoom()
      Returns the amount to scale on each iteration.
      void setAngle​(float angle)
      Specifies the angle of each iteration.
      void setCentre​(java.awt.geom.Point2D centre)
      Set the centre of the effect as a proportion of the image size.
      void setCentreX​(float centreX)
      Set the centre of the effect in the X direction as a proportion of the image size.
      void setCentreY​(float centreY)
      Set the centre of the effect in the Y direction as a proportion of the image size.
      void setDistance​(float distance)
      Specifies the distance to move on each iteration.
      void setEndAlpha​(float endAlpha)
      Set the alpha value at the last iteration.
      void setIterations​(int iterations)
      Set the number of iterations.
      void setRotation​(float rotation)
      Specifies the amount of rotation on each iteration.
      void setStartAlpha​(float startAlpha)
      Set the alpha value at the first iteration.
      void setZoom​(float zoom)
      Specifies the amount to scale on each iteration.
      java.lang.String toString()  
      • 从类继承的方法 java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 构造器详细资料

      • FeedbackFilter

        public FeedbackFilter()
        Construct a FeedbackFilter.
      • FeedbackFilter

        public FeedbackFilter​(float distance,
                              float angle,
                              float rotation,
                              float zoom)
        Construct a FeedbackFilter.
        参数:
        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
    • 方法详细资料

      • setAngle

        public void setAngle​(float angle)
        Specifies the angle of each iteration.
        参数:
        angle - the angle of each iteration.
        另请参阅:
        getAngle()
      • getAngle

        public float getAngle()
        Returns the angle of each iteration.
        返回:
        the angle of each iteration.
        另请参阅:
        setAngle(float)
      • setDistance

        public void setDistance​(float distance)
        Specifies the distance to move on each iteration.
        参数:
        distance - the distance
        另请参阅:
        getDistance()
      • getDistance

        public float getDistance()
        Get the distance to move on each iteration.
        返回:
        the distance
        另请参阅:
        setDistance(float)
      • setRotation

        public void setRotation​(float rotation)
        Specifies the amount of rotation on each iteration.
        参数:
        rotation - the angle of rotation
        另请参阅:
        getRotation()
      • getRotation

        public float getRotation()
        Returns the amount of rotation on each iteration.
        返回:
        the angle of rotation
        另请参阅:
        setRotation(float)
      • setZoom

        public void setZoom​(float zoom)
        Specifies the amount to scale on each iteration.
        参数:
        zoom - the zoom factor
        另请参阅:
        getZoom()
      • getZoom

        public float getZoom()
        Returns the amount to scale on each iteration.
        返回:
        the zoom factor
        另请参阅:
        setZoom(float)
      • setStartAlpha

        public void setStartAlpha​(float startAlpha)
        Set the alpha value at the first iteration.
        参数:
        startAlpha - the alpha value min-value 0 max-value 1
        另请参阅:
        getStartAlpha()
      • getStartAlpha

        public float getStartAlpha()
        Get the alpha value at the first iteration.
        返回:
        the alpha value
        另请参阅:
        setStartAlpha(float)
      • setEndAlpha

        public void setEndAlpha​(float endAlpha)
        Set the alpha value at the last iteration.
        参数:
        endAlpha - the alpha value min-value 0 max-value 1
        另请参阅:
        getEndAlpha()
      • getEndAlpha

        public float getEndAlpha()
        Get the alpha value at the last iteration.
        返回:
        the alpha value
        另请参阅:
        setEndAlpha(float)
      • setCentreX

        public void setCentreX​(float centreX)
        Set the centre of the effect in the X direction as a proportion of the image size.
        参数:
        centreX - the center
        另请参阅:
        getCentreX()
      • getCentreX

        public float getCentreX()
        Get the centre of the effect in the X direction as a proportion of the image size.
        返回:
        the center
        另请参阅:
        setCentreX(float)
      • setCentreY

        public void setCentreY​(float centreY)
        Set the centre of the effect in the Y direction as a proportion of the image size.
        参数:
        centreY - the center
        另请参阅:
        getCentreY()
      • getCentreY

        public float getCentreY()
        Get the centre of the effect in the Y direction as a proportion of the image size.
        返回:
        the center
        另请参阅:
        setCentreY(float)
      • setCentre

        public void setCentre​(java.awt.geom.Point2D centre)
        Set the centre of the effect as a proportion of the image size.
        参数:
        centre - the center
        另请参阅:
        getCentre()
      • getCentre

        public java.awt.geom.Point2D getCentre()
        Get the centre of the effect as a proportion of the image size.
        返回:
        the center
        另请参阅:
        setCentre(java.awt.geom.Point2D)
      • setIterations

        public void setIterations​(int iterations)
        Set the number of iterations.
        参数:
        iterations - the number of iterations min-value 0
        另请参阅:
        getIterations()
      • getIterations

        public int getIterations()
        Get the number of iterations.
        返回:
        the number of iterations
        另请参阅:
        setIterations(int)
      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object