类 DitherFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.PointFilter
-
- org.meteoinfo.image.filter.DitherFilter
-
- 所有已实现的接口:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class DitherFilter extends PointFilter
A filter which performs ordered dithering on an image.
-
-
字段概要
字段 修饰符和类型 字段 说明 static int[]dither90Halftone6x6Matrix6x6 90 degree halftone.static int[]ditherCluster3MatrixOrder-3 clustered dither.static int[]ditherCluster4MatrixOrder-4 clustered dither.static int[]ditherCluster8MatrixOrder-8 clustered dither.static int[]ditherLines4x4Matrix4x4 lines.protected static int[]ditherMagic2x2Matrix2x2 magic square.protected static int[]ditherMagic4x4Matrix4x4 magic square.static int[]ditherOrdered4x4Matrix4x4 ordered dither.static int[]ditherOrdered6x6MatrixOrder-6 ordered dither.static int[]ditherOrdered8x8MatrixOrder-8 ordered dither.-
从类继承的字段 org.meteoinfo.image.filter.PointFilter
canFilterIndexColorModel
-
-
构造器概要
构造器 构造器 说明 DitherFilter()Constuct a DitherFilter.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intfilterRGB(int x, int y, int rgb)booleangetColorDither()Get whether to use a color dither.intgetLevels()Get the number of dither levels.int[]getMatrix()Get the dither matrix.protected voidinitialize()Initialize the filter.voidsetColorDither(boolean colorDither)Set whether to use a color dither.voidsetLevels(int levels)Set the number of dither levels.voidsetMatrix(int[] matrix)Set the dither matrix.java.lang.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.PointFilter
filter, setDimensions
-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
字段详细资料
-
ditherMagic2x2Matrix
protected static final int[] ditherMagic2x2Matrix
2x2 magic square.
-
ditherMagic4x4Matrix
protected static final int[] ditherMagic4x4Matrix
4x4 magic square.
-
ditherOrdered4x4Matrix
public static final int[] ditherOrdered4x4Matrix
4x4 ordered dither.
-
ditherLines4x4Matrix
public static final int[] ditherLines4x4Matrix
4x4 lines.
-
dither90Halftone6x6Matrix
public static final int[] dither90Halftone6x6Matrix
6x6 90 degree halftone.
-
ditherOrdered6x6Matrix
public static final int[] ditherOrdered6x6Matrix
Order-6 ordered dither.
-
ditherOrdered8x8Matrix
public static final int[] ditherOrdered8x8Matrix
Order-8 ordered dither.
-
ditherCluster3Matrix
public static final int[] ditherCluster3Matrix
Order-3 clustered dither.
-
ditherCluster4Matrix
public static final int[] ditherCluster4Matrix
Order-4 clustered dither.
-
ditherCluster8Matrix
public static final int[] ditherCluster8Matrix
Order-8 clustered dither.
-
-
方法详细资料
-
setMatrix
public void setMatrix(int[] matrix)
Set the dither matrix.- 参数:
matrix- the dither matrix- 另请参阅:
getMatrix()
-
getMatrix
public int[] getMatrix()
Get the dither matrix.- 返回:
- the dither matrix
- 另请参阅:
setMatrix(int[])
-
setLevels
public void setLevels(int levels)
Set the number of dither levels.- 参数:
levels- the number of levels- 另请参阅:
getLevels()
-
getLevels
public int getLevels()
Get the number of dither levels.- 返回:
- the number of levels
- 另请参阅:
setLevels(int)
-
setColorDither
public void setColorDither(boolean colorDither)
Set whether to use a color dither.- 参数:
colorDither- whether to use a color dither- 另请参阅:
getColorDither()
-
getColorDither
public boolean getColorDither()
Get whether to use a color dither.- 返回:
- whether to use a color dither
- 另请参阅:
getColorDither()
-
initialize
protected void initialize()
Initialize the filter.
-
filterRGB
public int filterRGB(int x, int y, int rgb)- 指定者:
filterRGB在类中PointFilter
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-