com.imsl.chart
Class WebSafeImageFilter
java.lang.Object
java.awt.image.ImageFilter
com.imsl.chart.WebSafeImageFilter
- All Implemented Interfaces:
- ImageConsumer, Cloneable
public class WebSafeImageFilter
- extends ImageFilter
Maps colors in an image to the nearest Web-safe color.
Method Summary |
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)
|
WebSafeImageFilter
public WebSafeImageFilter()
getSafePixel
public static Color getSafePixel(Color color)
- Returns the Web-safe color nearest the given color.
setPixels
public void setPixels(int x,
int y,
int w,
int h,
ColorModel model,
byte[] pixels,
int off,
int scansize)
- Specified by:
setPixels
in interface ImageConsumer
- Overrides:
setPixels
in class ImageFilter
setPixels
public void setPixels(int x,
int y,
int w,
int h,
ColorModel model,
int[] pixels,
int off,
int scansize)
- Specified by:
setPixels
in interface ImageConsumer
- Overrides:
setPixels
in class ImageFilter
Copyright © 1970-2008 Visual Numerics, Inc.
Built July 8 2008.