javax.swing
public class GrayFilter extends RGBImageFilter
Constructor Summary | |
---|---|
GrayFilter(boolean b, int p)
Create a GrayFilter. |
Method Summary | |
---|---|
static Image | createDisabledImage(Image src)
Create grayed image
|
int | filterRGB(int x, int y, int rgb)
Filter RGB to gray |
Parameters: b if brighten p percent of gray, 0 - 100
Parameters: src image to gray
Returns: a grayed image