public static class UIUtil.GrayFilter
extends java.awt.image.RGBImageFilter
| Modifier and Type | Class and Description |
|---|---|
static class |
UIUtil.GrayFilter.GrayFilterUIResource |
| Constructor and Description |
|---|
GrayFilter() |
GrayFilter(int brightness,
int contrast,
int alpha) |
| Modifier and Type | Method and Description |
|---|---|
UIUtil.GrayFilter.GrayFilterUIResource |
asUIResource() |
int |
filterRGB(int x,
int y,
int rgb) |
int |
getAlpha() |
int |
getBrightness() |
int |
getContrast() |
static UIUtil.GrayFilter |
namedFilter(java.lang.String resourceName,
UIUtil.GrayFilter defaultFilter) |
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModelpublic GrayFilter(int brightness,
int contrast,
int alpha)
brightness - in range [-100..100] where 0 has no effectcontrast - in range [-100..100] where 0 has no effectalpha - in range [0..100] where 0 is transparent, 100 has no effectpublic GrayFilter()
public int getBrightness()
public int getContrast()
public int getAlpha()
public int filterRGB(int x,
int y,
int rgb)
filterRGB in class java.awt.image.RGBImageFilterpublic UIUtil.GrayFilter.GrayFilterUIResource asUIResource()
public static UIUtil.GrayFilter namedFilter(java.lang.String resourceName, UIUtil.GrayFilter defaultFilter)