All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.OpaqueImageFilter

java.lang.Object
   |
   +----java.awt.image.ImageFilter
           |
           +----java.awt.image.RGBImageFilter
                   |
                   +----jp.kyasu.graphics.OpaqueImageFilter

public class OpaqueImageFilter
extends RGBImageFilter
The OpaqueImageFilter class implements a filter for opaque images. This class is used in conjunction with a FilteredImageSource object to produce opaque versions of existing images.

Version:
29 Sep 1997
Author:
Kazuki YASUMATSU
See Also:
FilteredImageSource, ImageFilter

Constructor Index

 o OpaqueImageFilter(Color)
Constructs a opaque image filter with the specified color that is used as a base color for opaque images.

Method Index

 o filterRGB(int, int, int)
Converts a single input pixel to a base color pixel, if the brightness of the input pixel is less than 128; converts the input pixel to a white pixel, otherwise.

Constructors

 o OpaqueImageFilter
 public OpaqueImageFilter(Color color)
Constructs a opaque image filter with the specified color that is used as a base color for opaque images.

Parameters:
color - the base color.

Methods

 o filterRGB
 public int filterRGB(int x,
                      int y,
                      int rgb)
Converts a single input pixel to a base color pixel, if the brightness of the input pixel is less than 128; converts the input pixel to a white pixel, otherwise.

Parameters:
x - the x position of the pixel.
y - the y position of the pixel.
rgb - the rgb pixel value.
Overrides:
filterRGB in class RGBImageFilter
See Also:
filterRGB

All Packages  Class Hierarchy  This Package  Previous  Next  Index