public class GreenFilter extends BaseFilter
canFilterIndexColorModel, newmodel, origmodelconsumerCOMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT| Constructor and Description |
|---|
GreenFilter(int p)
Constructs a Filter that can be used to construct a
green-scale image.
|
| Modifier and Type | Method and Description |
|---|---|
int |
filterRGB(int x,
int y,
int rgb)
Overrides
RGBImageFilter.filterRGB. |
getBlue, getGreen, getNTSCValue, getRed, getRGBfilterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModelclone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setPropertiespublic GreenFilter(int p)
p - the percentage of color in the range 0..100, where 100 is
the darkest, and 0 is the lightest.public int filterRGB(int x,
int y,
int rgb)
RGBImageFilter.filterRGB.filterRGB in class RGBImageFilterx - the horizontal position of the pixel.y - the vertical position of the pixel.rgb - the color of the pixel.Copyright © 2002-2013 Edwin Dankert. All Rights Reserved.