public class DarkerFilter extends BaseFilter
canFilterIndexColorModel, newmodel, origmodel
consumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
Constructor and Description |
---|
DarkerFilter(int p)
Constructs a Filter that can be used to construct a darker image.
|
Modifier and Type | Method and Description |
---|---|
int |
filterRGB(int x,
int y,
int rgb)
Overrides
RGBImageFilter.filterRGB . |
getBlue, getGreen, getNTSCValue, getRed, getRGB
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties
public DarkerFilter(int p)
p
- the percentage of darkness 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 RGBImageFilter
x
- 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.