类 PixelUtils
- java.lang.Object
-
- org.meteoinfo.image.filter.PixelUtils
-
public class PixelUtils extends Object
Some more useful math functions for image processing. These are becoming obsolete as we move to Java2D. Use MiscComposite instead.
-
-
字段概要
字段 修饰符和类型 字段 说明 static intADDstatic intALPHAstatic intALPHA_TO_GRAYstatic intAVERAGEstatic intCLEARstatic intCOLORstatic intDIFFERENCEstatic intDISSOLVEstatic intDST_INstatic intEXCHANGEstatic intHUEstatic intMAXstatic intMINstatic intMULTIPLYstatic intNORMALstatic intOVERLAYstatic intREPLACEstatic intSATURATIONstatic intSCREENstatic intSUBTRACTstatic intVALUE
-
构造器概要
构造器 构造器 说明 PixelUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static intbrightness(int rgb)static intclamp(int c)Clamp a value to the range 0..255static intcombinePixels(int rgb1, int rgb2, int op)static intcombinePixels(int rgb1, int rgb2, int op, int extraAlpha)static intcombinePixels(int rgb1, int rgb2, int op, int extraAlpha, int channelMask)static intinterpolate(int v1, int v2, float f)static booleannearColors(int rgb1, int rgb2, int tolerance)
-
-
-
字段详细资料
-
REPLACE
public static final int REPLACE
- 另请参阅:
- 常量字段值
-
NORMAL
public static final int NORMAL
- 另请参阅:
- 常量字段值
-
MIN
public static final int MIN
- 另请参阅:
- 常量字段值
-
MAX
public static final int MAX
- 另请参阅:
- 常量字段值
-
ADD
public static final int ADD
- 另请参阅:
- 常量字段值
-
SUBTRACT
public static final int SUBTRACT
- 另请参阅:
- 常量字段值
-
DIFFERENCE
public static final int DIFFERENCE
- 另请参阅:
- 常量字段值
-
MULTIPLY
public static final int MULTIPLY
- 另请参阅:
- 常量字段值
-
HUE
public static final int HUE
- 另请参阅:
- 常量字段值
-
SATURATION
public static final int SATURATION
- 另请参阅:
- 常量字段值
-
VALUE
public static final int VALUE
- 另请参阅:
- 常量字段值
-
COLOR
public static final int COLOR
- 另请参阅:
- 常量字段值
-
SCREEN
public static final int SCREEN
- 另请参阅:
- 常量字段值
-
AVERAGE
public static final int AVERAGE
- 另请参阅:
- 常量字段值
-
OVERLAY
public static final int OVERLAY
- 另请参阅:
- 常量字段值
-
CLEAR
public static final int CLEAR
- 另请参阅:
- 常量字段值
-
EXCHANGE
public static final int EXCHANGE
- 另请参阅:
- 常量字段值
-
DISSOLVE
public static final int DISSOLVE
- 另请参阅:
- 常量字段值
-
DST_IN
public static final int DST_IN
- 另请参阅:
- 常量字段值
-
ALPHA
public static final int ALPHA
- 另请参阅:
- 常量字段值
-
ALPHA_TO_GRAY
public static final int ALPHA_TO_GRAY
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
clamp
public static int clamp(int c)
Clamp a value to the range 0..255
-
interpolate
public static int interpolate(int v1, int v2, float f)
-
brightness
public static int brightness(int rgb)
-
nearColors
public static boolean nearColors(int rgb1, int rgb2, int tolerance)
-
combinePixels
public static int combinePixels(int rgb1, int rgb2, int op)
-
combinePixels
public static int combinePixels(int rgb1, int rgb2, int op, int extraAlpha, int channelMask)
-
combinePixels
public static int combinePixels(int rgb1, int rgb2, int op, int extraAlpha)
-
-