public class WebSafeImageFilter extends ImageFilter
consumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
Constructor and Description |
---|
WebSafeImageFilter() |
Modifier and Type | Method and Description |
---|---|
static Color |
getSafePixel(Color color)
Returns the Web-safe color nearest the given color.
|
void |
setPixels(int x,
int y,
int w,
int h,
ColorModel model,
byte[] pixels,
int off,
int scansize) |
void |
setPixels(int x,
int y,
int w,
int h,
ColorModel model,
int[] pixels,
int off,
int scansize) |
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setColorModel, setDimensions, setHints, setProperties
public static Color getSafePixel(Color color)
public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
setPixels
in interface ImageConsumer
setPixels
in class ImageFilter
public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
setPixels
in interface ImageConsumer
setPixels
in class ImageFilter
Copyright © 1970-2015 Rogue Wave Software
Built October 13 2015.