Class QuiltFilter

  • All Implemented Interfaces:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class QuiltFilter
    extends WholeImageFilter
    • Constructor Detail

      • QuiltFilter

        public QuiltFilter()
    • Method Detail

      • randomize

        public void randomize()
      • setIterations

        public void setIterations​(int iterations)
        Set the number of iterations the effect is performed.
        Parameters:
        iterations - the number of iterations. The minimum value is 0.0.
        See Also:
        getIterations()
      • getIterations

        public int getIterations()
        Get the number of iterations the effect is performed.
        Returns:
        the number of iterations
        See Also:
        setIterations(int)
      • setA

        public void setA​(float a)
      • getA

        public float getA()
      • setB

        public void setB​(float b)
      • getB

        public float getB()
      • setC

        public void setC​(float c)
      • getC

        public float getC()
      • setD

        public void setD​(float d)
      • getD

        public float getD()
      • setK

        public void setK​(int k)
      • getK

        public int getK()
      • setColormap

        public void setColormap​(Colormap colormap)
        Set the colormap to be used for the filter.
        Parameters:
        colormap - the colormap
        See Also:
        getColormap()
      • filterPixels

        protected int[] filterPixels​(int width,
                                     int height,
                                     int[] inPixels,
                                     java.awt.Rectangle transformedSpace)
        Description copied from class: WholeImageFilter
        Actually filter the pixels.
        Specified by:
        filterPixels in class WholeImageFilter
        Parameters:
        width - the image width
        height - the image height
        inPixels - the image pixels
        transformedSpace - the output bounds
        Returns:
        the output pixels
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object