|
||||||||||
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.WholeImageFilter
railo.runtime.img.filter.CellularFilter
public class CellularFilter
A filter which produces an image with a cellular texture.
Nested Class Summary | |
---|---|
class |
CellularFilter.Point
|
Field Summary | |
---|---|
float |
amount
|
float |
bias
|
float |
distancePower
|
float |
gain
|
static int |
HEXAGONAL
|
static int |
OCTAGONAL
|
static int |
RANDOM
|
static int |
SQUARE
|
static int |
TRIANGULAR
|
float |
turbulence
|
boolean |
useColor
|
Constructor Summary | |
---|---|
CellularFilter()
|
Method Summary | |
---|---|
Object |
clone()
|
float |
evaluate(float x,
float y)
|
BufferedImage |
filter(BufferedImage src,
Struct parameters)
|
float |
getAmount()
Get the amount of texture. |
float |
getAngle()
Returns the angle of the texture. |
float |
getAngleCoefficient()
|
float |
getCoefficient(int i)
|
Colormap |
getColormap()
Get the colormap to be used for the filter. |
float |
getDistancePower()
|
float |
getF1()
|
float |
getF2()
|
float |
getF3()
|
float |
getF4()
|
float |
getGradientCoefficient()
|
int |
getGridType()
|
int |
getPixel(int x,
int y,
int[] inPixels,
int width,
int height)
|
float |
getRandomness()
|
float |
getScale()
Returns the scale of the texture. |
float |
getStretch()
Returns the stretch factor of the texture. |
float |
getTurbulence()
Returns the turbulence of the effect. |
void |
setAmount(float amount)
Set the amount of effect. |
void |
setAngle(float angle)
Specifies the angle of the texture. |
void |
setAngleCoefficient(float angleCoefficient)
|
void |
setCoefficient(int i,
float v)
|
void |
setColormap(Colormap colormap)
Set the colormap to be used for the filter. |
void |
setDistancePower(float distancePower)
|
void |
setF1(float v)
|
void |
setF2(float v)
|
void |
setF3(float v)
|
void |
setF4(float v)
|
void |
setGradientCoefficient(float gradientCoefficient)
|
void |
setGridType(String gridType)
the grid type to set, one of the following: - RANDOM - SQUARE - HEXAGONAL - OCTAGONAL - TRIANGULAR |
void |
setRandomness(float randomness)
|
void |
setScale(float scale)
Specifies the scale of the texture. |
void |
setStretch(float stretch)
Specifies the stretch factor of the texture. |
void |
setTurbulence(float turbulence)
Specifies the turbulence of the texture. |
String |
toString()
|
float |
turbulence2(float x,
float y,
float freq)
|
Methods inherited from class railo.runtime.img.filter.WholeImageFilter |
---|
filter |
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp |
---|
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public float amount
public float turbulence
public float gain
public float bias
public float distancePower
public boolean useColor
public static final int RANDOM
public static final int SQUARE
public static final int HEXAGONAL
public static final int OCTAGONAL
public static final int TRIANGULAR
Constructor Detail |
---|
public CellularFilter()
Method Detail |
---|
public void setScale(float scale)
scale
- the scale of the texture.getScale()
public float getScale()
setScale(float)
public void setStretch(float stretch)
stretch
- the stretch factor of the texture.getStretch()
public float getStretch()
setStretch(float)
public void setAngle(float angle)
angle
- the angle of the texture.getAngle()
public float getAngle()
setAngle(float)
public void setCoefficient(int i, float v)
public float getCoefficient(int i)
public void setAngleCoefficient(float angleCoefficient)
public float getAngleCoefficient()
public void setGradientCoefficient(float gradientCoefficient)
public float getGradientCoefficient()
public void setF1(float v)
public float getF1()
public void setF2(float v)
public float getF2()
public void setF3(float v)
public float getF3()
public void setF4(float v)
public float getF4()
public void setColormap(Colormap colormap)
colormap
- the colormapgetColormap()
public Colormap getColormap()
setColormap(railo.runtime.img.filter.Colormap)
public void setRandomness(float randomness)
public float getRandomness()
public void setGridType(String gridType) throws ExpressionException
ExpressionException
public int getGridType()
public void setDistancePower(float distancePower)
public float getDistancePower()
public void setTurbulence(float turbulence)
turbulence
- the turbulence of the texture.getTurbulence()
public float getTurbulence()
setTurbulence(float)
public void setAmount(float amount)
amount
- the amountgetAmount()
public float getAmount()
setAmount(float)
public float evaluate(float x, float y)
evaluate
in interface Function2D
public float turbulence2(float x, float y, float freq)
public int getPixel(int x, int y, int[] inPixels, int width, int height)
public Object clone()
clone
in class AbstractBufferedImageOp
public String toString()
toString
in class Object
public BufferedImage filter(BufferedImage src, Struct parameters) throws PageException
filter
in interface DynFiltering
filter
in class WholeImageFilter
PageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |