public class SilhouetteFilter extends BaseFilter
canFilterIndexColorModel, newmodel, origmodel
consumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
Constructor and Description |
---|
SilhouetteFilter(Color color)
Constructs a Filter that can be used to create a silhouette.
|
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 SilhouetteFilter(Color color)
color
- the color of the silhouette.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.