ImageConsumer
, Cloneable
public class GrayFilter extends RGBImageFilter
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
consumer
canFilterIndexColorModel, 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, setProperties
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
public 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 RGBImageFilter
pX
- xpY
- ypARGB
- pixel value in default color spaceCopyright © 2018. All rights reserved.