|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.img.filter.AbstractBufferedImageOp
railo.runtime.img.filter.PointFilter
railo.runtime.img.filter.NoiseFilter
public class NoiseFilter
A filter which adds random noise into an image.
Field Summary | |
---|---|
static int |
GAUSSIAN
Gaussian distribution for the noise. |
static int |
UNIFORM
Uniform distribution for the noise. |
Constructor Summary | |
---|---|
NoiseFilter()
|
Method Summary | |
---|---|
BufferedImage |
filter(BufferedImage src,
Struct parameters)
|
int |
filterRGB(int x,
int y,
int rgb)
|
int |
getAmount()
Get the amount of noise. |
float |
getDensity()
Get the density of the noise. |
int |
getDistribution()
Get the distribution of the noise. |
boolean |
getMonochrome()
Get whether to use monochrome noise. |
void |
setAmount(int amount)
Set the amount of effect. |
void |
setDensity(float density)
Set the density of the noise. |
void |
setDistribution(int distribution)
Set the distribution of the noise. |
void |
setMonochrome(boolean monochrome)
Set whether to use monochrome noise. |
String |
toString()
|
Methods inherited from class railo.runtime.img.filter.PointFilter |
---|
filter, setDimensions |
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp |
---|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int GAUSSIAN
public static final int UNIFORM
Constructor Detail |
---|
public NoiseFilter()
Method Detail |
---|
public void setAmount(int amount)
amount
- the amountgetAmount()
public int getAmount()
setAmount(int)
public void setDistribution(int distribution)
distribution
- the distributiongetDistribution()
public int getDistribution()
setDistribution(int)
public void setMonochrome(boolean monochrome)
monochrome
- true for monochrome noisegetMonochrome()
public boolean getMonochrome()
setMonochrome(boolean)
public void setDensity(float density)
density
- the densitygetDensity()
public float getDensity()
setDensity(float)
public int filterRGB(int x, int y, int rgb)
filterRGB
in class PointFilter
public String toString()
toString
in class Object
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class PointFilter
PageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |