public class SmallMindGrayFilter extends RGBImageFilter
canFilterIndexColorModel, newmodel, origmodelconsumerCOMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT| Constructor and Description |
|---|
SmallMindGrayFilter(boolean brighter,
int percent)
Constructs a GrayFilter object that filters a color image to a
grayscale image.
|
| Modifier and Type | Method and Description |
|---|---|
static Image |
createDisabledImage(Image image) |
int |
filterRGB(int x,
int y,
int rgb) |
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModelclone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setPropertiespublic SmallMindGrayFilter(boolean brighter,
int percent)
brighter - a boolean -- true if the pixels should be brightenedpercent - 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)
filterRGB in class RGBImageFilterCopyright © 2017. All rights reserved.