public class GrayFilter extends RGBImageFilter
canFilterIndexColorModel, newmodel, origmodelconsumerCOMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT| Constructor and Description |
|---|
GrayFilter(boolean b,
int p)
Constructs a GrayFilter object that filters a color image to a
grayscale image.
|
| Modifier and Type | Method and Description |
|---|---|
static Image |
createDisabledImage(Image i)
Creates a disabled image
|
int |
filterRGB(int x,
int y,
int rgb)
Overrides
RGBImageFilter.filterRGB. |
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModelclone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setPropertiespublic GrayFilter(boolean b,
int p)
b - a boolean -- true if the pixels should be brightenedp - an int in the range 0..100 that determines the percentage
of gray, where 100 is the darkest gray, and 0 is the lightestpublic int filterRGB(int x,
int y,
int rgb)
RGBImageFilter.filterRGB.filterRGB in class RGBImageFilterx - the X coordinate of the pixely - the Y coordinate of the pixelrgb - the integer pixel representation in the default RGB
color modelColorModel.getRGBdefault(),
RGBImageFilter.filterRGBPixels(int, int, int, int, int[], int, int)aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.