|
||||||||||
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.DiffusionFilter
public class DiffusionFilter
A filter which uses Floyd-Steinberg error diffusion dithering to halftone an image.
Constructor Summary | |
---|---|
DiffusionFilter()
Construct a DiffusionFilter. |
Method Summary | |
---|---|
BufferedImage |
filter(BufferedImage src,
Struct parameters)
|
boolean |
getColorDither()
Get whether to use a color dither. |
int |
getLevels()
Get the number of dither levels. |
int[] |
getMatrix()
Get the dither matrix. |
boolean |
getSerpentine()
Return the serpentine setting. |
void |
setColorDither(boolean colorDither)
Set whether to use a color dither. |
void |
setLevels(int levels)
Set the number of dither levels. |
void |
setMatrix(int[] matrix)
Set the dither matrix. |
void |
setSerpentine(boolean serpentine)
Set whether to use a serpentine pattern for return or not. |
String |
toString()
|
Methods inherited from class railo.runtime.img.filter.WholeImageFilter |
---|
filter |
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 |
Constructor Detail |
---|
public DiffusionFilter()
Method Detail |
---|
public void setSerpentine(boolean serpentine)
serpentine
- true to use serpentine patterngetSerpentine()
public boolean getSerpentine()
setSerpentine(boolean)
public void setColorDither(boolean colorDither)
colorDither
- true to use a color dithergetColorDither()
public boolean getColorDither()
setColorDither(boolean)
public void setMatrix(int[] matrix)
matrix
- the dither matrixgetMatrix()
public int[] getMatrix()
setMatrix(int[])
public void setLevels(int levels)
levels
- the number of levelsgetLevels()
public int getLevels()
setLevels(int)
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 |