com.jhlabs.image
Class SmearFilter
- BufferedImageOp, Cloneable
CIRCLES
public static final int CIRCLES
CROSSES
public static final int CROSSES
LINES
public static final int LINES
SQUARES
public static final int SQUARES
SmearFilter
public SmearFilter()
Construct a WholeImageFilter.
filterPixels
protected int[] filterPixels(int width,
int height,
int[] inPixels,
Rectangle transformedSpace)
Actually filter the pixels.
- filterPixels in interface WholeImageFilter
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output bounds
getAngle
public float getAngle()
Returns the angle of the texture.
- the angle of the texture.
getBackground
public boolean getBackground()
getDensity
public float getDensity()
getDistance
public int getDistance()
getFadeout
public int getFadeout()
getMix
public float getMix()
getScatter
public float getScatter()
getShape
public int getShape()
randomize
public void randomize()
setAngle
public void setAngle(float angle)
Specifies the angle of the texture.
angle
- the angle of the texture.
setBackground
public void setBackground(boolean background)
setDensity
public void setDensity(float density)
setDistance
public void setDistance(int distance)
setFadeout
public void setFadeout(int fadeout)
setMix
public void setMix(float mix)
setScatter
public void setScatter(float scatter)
setShape
public void setShape(int shape)
toString
public String toString()