public class OpaqueImageFilter
extends java.awt.image.RGBImageFilter
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.FilteredImageSource,
ImageFilter| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected int |
colorRGB
The RGB color value.
|
| コンストラクタと説明 |
|---|
OpaqueImageFilter(java.awt.Color color)
Constructs a opaque image filter with the specified color that is
used as a base color for opaque images.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.
|
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModelpublic OpaqueImageFilter(java.awt.Color color)
color - the base color.public int filterRGB(int x,
int y,
int rgb)
filterRGB クラス内 java.awt.image.RGBImageFilterx - the x position of the pixel.y - the y position of the pixel.rgb - the rgb pixel value.RGBImageFilter.filterRGB(int, int, int)