Java Platform 1.2
Beta 4

Class com.sun.java.swing.GrayFilter

java.lang.Object
  |
  +--java.awt.image.ImageFilter
        |
        +--java.awt.image.RGBImageFilter
              |
              +--com.sun.java.swing.GrayFilter

public class GrayFilter
extends RGBImageFilter
An image filter that "disables" an image by turning it into a grayscale image, and brightening the pixels in the image.


Fields inherited from class java.awt.image.RGBImageFilter
canFilterIndexColorModel , newmodel , origmodel
 
Fields inherited from class java.awt.image.ImageFilter
consumer
 
Constructor Summary
GrayFilter(boolean b, int p)
           
 
Method Summary
static Image createDisabledImage(Image i)
          Creates a disabled image
 int filterRGB(int x, int y, int rgb)
           
 
Methods inherited from class java.awt.image.RGBImageFilter
filterIndexColorModel , filterRGBPixels , setColorModel , setPixels , setPixels , substituteColorModel
 
Methods inherited from class java.awt.image.ImageFilter
clone , getFilterInstance , imageComplete , resendTopDownLeftRight , setDimensions , setHints , setProperties
 
Methods inherited from class java.lang.Object
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

Constructor Detail

GrayFilter

public GrayFilter(boolean b,
                  int p)
Method Detail

createDisabledImage

public static Image createDisabledImage(Image i)
Creates a disabled image

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Overrides:
filterRGB in class RGBImageFilter

Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.