Class SmearFilter

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

    public class SmearFilter
    extends WholeImageFilter
    • Constructor Detail

      • SmearFilter

        public SmearFilter()
    • Method Detail

      • setShape

        public void setShape​(int shape)
      • getShape

        public int getShape()
      • setDistance

        public void setDistance​(int distance)
      • getDistance

        public int getDistance()
      • setDensity

        public void setDensity​(float density)
      • getDensity

        public float getDensity()
      • setScatter

        public void setScatter​(float scatter)
      • getScatter

        public float getScatter()
      • setAngle

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

        public float getAngle()
        Returns the angle of the texture.
        Returns:
        the angle of the texture.
        See Also:
        setAngle(float)
      • setMix

        public void setMix​(float mix)
      • getMix

        public float getMix()
      • setFadeout

        public void setFadeout​(int fadeout)
      • getFadeout

        public int getFadeout()
      • setBackground

        public void setBackground​(boolean background)
      • getBackground

        public boolean getBackground()
      • randomize

        public void randomize()
      • 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