All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.image.BlackAndWhiteFilter

java.lang.Object
   |
   +----java.awt.image.ImageFilter
           |
           +----java.awt.image.RGBImageFilter
                   |
                   +----gjt.image.BlackAndWhiteFilter

public class BlackAndWhiteFilter
extends RGBImageFilter
A derivation of RGBImageFilter that bleaches an image.

Extent of the bleaching effect is controlled by the only constructor argument: an integer representing the percentage of bleaching. The percentage of bleaching may also be controlled after instantiation by invoking the void percent(int) method.

See Also:
RGBImageFilter

Constructor Index

 o BlackAndWhiteFilter()

Method Index

 o filterRGB(int, int, int)

Constructors

 o BlackAndWhiteFilter
 public BlackAndWhiteFilter()

Methods

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index