Package com.jhlabs.image
Class SmearFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.WholeImageFilter
-
- com.jhlabs.image.SmearFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp
,java.lang.Cloneable
public class SmearFilter extends WholeImageFilter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CIRCLES
static int
CROSSES
static int
LINES
static int
SQUARES
-
Fields inherited from class com.jhlabs.image.WholeImageFilter
originalSpace, transformedSpace
-
-
Constructor Summary
Constructors Constructor Description SmearFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int[]
filterPixels(int width, int height, int[] inPixels, java.awt.Rectangle transformedSpace)
Actually filter the pixels.float
getAngle()
Returns the angle of the texture.boolean
getBackground()
float
getDensity()
int
getDistance()
int
getFadeout()
float
getMix()
float
getScatter()
int
getShape()
void
randomize()
void
setAngle(float angle)
Specifies the angle of the texture.void
setBackground(boolean background)
void
setDensity(float density)
void
setDistance(int distance)
void
setFadeout(int fadeout)
void
setMix(float mix)
void
setScatter(float scatter)
void
setShape(int shape)
java.lang.String
toString()
-
Methods inherited from class com.jhlabs.image.WholeImageFilter
filter, transformSpace
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Field Detail
-
CROSSES
public static final int CROSSES
- See Also:
- Constant Field Values
-
LINES
public static final int LINES
- See Also:
- Constant Field Values
-
CIRCLES
public static final int CIRCLES
- See Also:
- Constant Field Values
-
SQUARES
public static final int SQUARES
- See Also:
- Constant Field Values
-
-
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 classWholeImageFilter
- Parameters:
width
- the image widthheight
- the image heightinPixels
- the image pixelstransformedSpace
- the output bounds- Returns:
- the output pixels
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-