com.jhlabs.image

Class SmearFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class SmearFilter
extends WholeImageFilter

Field Summary

static int
CIRCLES
static int
CROSSES
static int
LINES
static int
SQUARES

Fields inherited from class com.jhlabs.image.WholeImageFilter

originalSpace, transformedSpace

Constructor Summary

SmearFilter()
Construct a WholeImageFilter.

Method Summary

protected int[]
filterPixels(int width, int height, int[] inPixels, 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)
String
toString()

Methods inherited from class com.jhlabs.image.WholeImageFilter

filter, filterPixels, transformSpace

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Field Details

CIRCLES

public static final int CIRCLES
Field Value:
2

CROSSES

public static final int CROSSES
Field Value:
0

LINES

public static final int LINES
Field Value:
1

SQUARES

public static final int SQUARES
Field Value:
3

Constructor Details

SmearFilter

public SmearFilter()
Construct a WholeImageFilter.

Method Details

filterPixels

protected int[] filterPixels(int width,
                             int height,
                             int[] inPixels,
                             Rectangle transformedSpace)
Actually filter the pixels.
Overrides:
filterPixels in interface WholeImageFilter
Parameters:
width - the image width
height - the image height
inPixels - the image pixels
transformedSpace - the output bounds
Returns:
the output pixels

getAngle

public float getAngle()
Returns the angle of the texture.
Returns:
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.
Parameters:
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()