| java.lang.Object java.awt.image.ImageFilter java.awt.image.RGBImageFilter com.hexidec.filter.RGBGreyscaleFilter
RGBGreyscaleFilter | public class RGBGreyscaleFilter extends RGBImageFilter (Code) | | RGBGreyscaleFilter
Creates a greyscale version of an image
author: Howard Kistler version: 0.1 version: REQUIREMENTS version: Java 2 (JDK 1.3) version: VERSION HISTORY version: 0.1 (10/31/2000) - initial creation (10/31/2000) |
RGBGreyscaleFilter | public RGBGreyscaleFilter()(Code) | | |
filterRGB | public int filterRGB(int x, int y, int rgb)(Code) | | Called by the filter upon each pixel to determine its greyscale equivalent
Conversion formula -> AVG(r & g & b)
|
procImage | public Image procImage(Image source)(Code) | | Modify and return a greyscale version of the image
|
Methods inherited from java.awt.image.RGBImageFilter | public IndexColorModel filterIndexColorModel(IndexColorModel icm)(Code)(Java Doc) abstract public int filterRGB(int x, int y, int rgb)(Code)(Java Doc) public void filterRGBPixels(int x, int y, int w, int h, int pixels, int off, int scansize)(Code)(Java Doc) public void setColorModel(ColorModel model)(Code)(Java Doc) public void setPixels(int x, int y, int w, int h, ColorModel model, byte pixels, int off, int scansize)(Code)(Java Doc) public void setPixels(int x, int y, int w, int h, ColorModel model, int pixels, int off, int scansize)(Code)(Java Doc) public void substituteColorModel(ColorModel oldcm, ColorModel newcm)(Code)(Java Doc)
|
Methods inherited from java.awt.image.ImageFilter | public Object clone()(Code)(Java Doc) public ImageFilter getFilterInstance(ImageConsumer ic)(Code)(Java Doc) public void imageComplete(int status)(Code)(Java Doc) public void resendTopDownLeftRight(ImageProducer ip)(Code)(Java Doc) public void setColorModel(ColorModel model)(Code)(Java Doc) public void setDimensions(int width, int height)(Code)(Java Doc) public void setHints(int hints)(Code)(Java Doc) public void setPixels(int x, int y, int w, int h, ColorModel model, byte pixels, int off, int scansize)(Code)(Java Doc) public void setPixels(int x, int y, int w, int h, ColorModel model, int pixels, int off, int scansize)(Code)(Java Doc) public void setProperties(Hashtable, ?> props)(Code)(Java Doc)
|
|
|