FileDocCategorySizeDatePackage
GrayImageFilter.javaAPI DocExample728Mon Mar 24 01:59:18 GMT 1997None

GrayImageFilter

public class GrayImageFilter extends RGBImageFilter

Fields Summary
Constructors Summary
public GrayImageFilter()

        canFilterIndexColorModel = true;
    
Methods Summary
public intfilterRGB(int x, int y, int rgb)

        int gray  = (((rgb & 0xff0000) >> 16) +
                    ((rgb & 0x00ff00) >> 8) +
                    (rgb & 0x0000ff)) / 3;
        return (0xff000000 | (gray << 16) | (gray <<  8) |  gray);