|
||||||||||
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.DitherFilter
public class DitherFilter
A filter which performs ordered dithering on an image.
Field Summary | |
---|---|
static int[] |
dither90Halftone6x6Matrix
6x6 90 degree halftone. |
static int[] |
ditherCluster3Matrix
Order-3 clustered dither. |
static int[] |
ditherCluster4Matrix
Order-4 clustered dither. |
static int[] |
ditherCluster8Matrix
Order-8 clustered dither. |
static int[] |
ditherLines4x4Matrix
4x4 lines. |
static int[] |
ditherOrdered4x4Matrix
4x4 ordered dither. |
static int[] |
ditherOrdered6x6Matrix
Order-6 ordered dither. |
static int[] |
ditherOrdered8x8Matrix
Order-8 ordered dither. |
Constructor Summary | |
---|---|
DitherFilter()
Constuct a DitherFilter. |
Method Summary | |
---|---|
BufferedImage |
filter(BufferedImage src,
Struct parameters)
|
int |
filterRGB(int x,
int y,
int rgb)
|
boolean |
getColorDither()
Get whether to use a color dither. |
int |
getLevels()
Get the number of dither levels. |
int[] |
getMatrix()
Get the dither matrix. |
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. |
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[] ditherOrdered4x4Matrix
public static final int[] ditherLines4x4Matrix
public static final int[] dither90Halftone6x6Matrix
public static final int[] ditherOrdered6x6Matrix
public static final int[] ditherOrdered8x8Matrix
public static final int[] ditherCluster3Matrix
public static final int[] ditherCluster4Matrix
public static final int[] ditherCluster8Matrix
Constructor Detail |
---|
public DitherFilter()
Method Detail |
---|
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 void setColorDither(boolean colorDither)
colorDither
- whether to use a color dithergetColorDither()
public boolean getColorDither()
getColorDither()
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 |