|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.image.ImageFilter
java.awt.image.RGBImageFilter
de.htwdd.rosenkoenig.util.ColorFilter
public class ColorFilter
More elaborate ColorFilter supporting brightening of the Image
| Field Summary | |
|---|---|
private int |
pMask
Determines the amount the image will be brightened; |
| 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 | |
|---|---|
ColorFilter()
Default constructor, uses 0xFF000000 as mask. |
|
ColorFilter(int mask)
|
|
| Method Summary | |
|---|---|
int |
filterRGB(int x,
int y,
int rgb)
|
| 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 |
| Field Detail |
|---|
private int pMask
| Constructor Detail |
|---|
public ColorFilter()
public ColorFilter(int mask)
percentage - overrides the classes default mask 0xFF000000.| Method Detail |
|---|
public int filterRGB(int x,
int y,
int rgb)
filterRGB in class java.awt.image.RGBImageFilterx - x coordinate of the currently processed pixely - y coordinate of the currently processed pixelrgb - alpha, red, green, blue value of the pixel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||