ImageConsumer, Cloneablepublic class GrayFilter extends RGBImageFilter
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHTconsumercanFilterIndexColorModel, newmodel, origmodel| Constructor | Description |
|---|---|
GrayFilter() |
Constructs a GrayFilter using ITU color-conversion.
|
GrayFilter(float pLow,
float pHigh) |
Constructs a GrayFilter using ITU color-conversion, and a dynamic range between
pLow and pHigh.
|
GrayFilter(int pLow,
int pHigh) |
Constructs a GrayFilter using ITU color-conversion, and a dynamic
range between pLow and pHigh.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
filterRGB(int pX,
int pY,
int pARGB) |
Filters one pixel using ITU color-conversion.
|
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModelpublic GrayFilter()
public GrayFilter(float pLow,
float pHigh)
pLow - float in the range 0..1pHigh - float in the range 0..1 and >= pLowpublic GrayFilter(int pLow,
int pHigh)
pLow - integer in the range 0..255pHigh - inteeger in the range 0..255 and >= pLowpublic int filterRGB(int pX,
int pY,
int pARGB)
filterRGB in class RGBImageFilterpX - xpY - ypARGB - pixel value in default color spaceCopyright © 2018. All rights reserved.