Class KaleidoscopeFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class KaleidoscopeFilter extends TransformFilter
A Filter which produces the effect of looking into a kaleidoscope.
  • Constructor Details

    • KaleidoscopeFilter

      public KaleidoscopeFilter()
      Construct a KaleidoscopeFilter with no distortion.
  • Method Details

    • setSides

      public void setSides(int sides)
    • getSides

      public int getSides()
    • setAngle

      public void setAngle(float angle)
    • getAngle

      public float getAngle()
    • setAngle2

      public void setAngle2(float angle2)
    • getAngle2

      public float getAngle2()
    • setCentreX

      public void setCentreX(float centreX)
    • getCentreX

      public float getCentreX()
    • setCentreY

      public void setCentreY(float centreY)
    • getCentreY

      public float getCentreY()
    • setCentre

      public void setCentre(Point2D centre)
    • getCentre

      public Point2D getCentre()
    • setRadius

      public void setRadius(float radius)
    • getRadius

      public float getRadius()
    • filter

      public BufferedImage filter(BufferedImage src, BufferedImage dst)
      Specified by:
      filter in interface BufferedImageOp
      Overrides:
      filter in class TransformFilter
    • transformInverse

      protected void transformInverse(int x, int y, float[] out)
      Specified by:
      transformInverse in class TransformFilter
    • toString

      public String toString()
      Overrides:
      toString in class Object