|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.image.ImageFilter java.awt.image.RGBImageFilter org.bounce.image.BaseFilter org.bounce.image.GrayFilter
public class GrayFilter
A filter that creates a gray version of the image. This is almost the same as the javax.swing.GrayFilter version. This filter does only not allow for the brighter variable. If the image needs to be made brighter, use the BrighterFilter.
Field Summary |
---|
Fields inherited from class java.awt.image.RGBImageFilter |
---|
canFilterIndexColorModel, newmodel, origmodel |
Fields inherited from class java.awt.image.ImageFilter |
---|
consumer |
Fields inherited from interface java.awt.image.ImageConsumer |
---|
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT |
Constructor Summary | |
---|---|
GrayFilter(int p)
Constructs a Filter that can be used to construct a grayscale image. |
Method Summary | |
---|---|
int |
filterRGB(int x,
int y,
int rgb)
Overrides RGBImageFilter.filterRGB . |
Methods inherited from class org.bounce.image.BaseFilter |
---|
getBlue, getGreen, getNTSCValue, getRed, getRGB |
Methods inherited from class java.awt.image.RGBImageFilter |
---|
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel |
Methods inherited from class java.awt.image.ImageFilter |
---|
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrayFilter(int p)
p
- the percentage of color in the range 0..100, where 100 is
the darkest, and 0 is the lightest.Method Detail |
---|
public int filterRGB(int x, int y, int rgb)
RGBImageFilter.filterRGB
.
filterRGB
in class java.awt.image.RGBImageFilter
x
- the horizontal position of the pixel.y
- the vertical position of the pixel.rgb
- the color of the pixel.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |