com.eteks.filter
Class Web216ColorsFilter
java.lang.Object
|
+--java.awt.image.ImageFilter
|
+--java.awt.image.RGBImageFilter
|
+--com.eteks.filter.Web216ColorsFilter
- All Implemented Interfaces:
- Cloneable, ImageConsumer
- public class Web216ColorsFilter
- extends RGBImageFilter
This image filter transforms the color of each pixel of an image, using
a fixed 216 colors palette. No special dithering is performed.
Each Red, Green, Blue component of the 216 colors resulting palette take a value
among the 6 values of the following set : (0x00, 0x33, 0x66, 0x99, OxCC, OxFF).
6 power 3 makes 216 total possible combinations.
- Since:
- PJA1.0
- Author:
- Emmanuel Puybaret
Method Summary |
(package private) void |
()
|
int |
filterRGB(int x,
int y,
int rgb)
RGBImageFilter method implementation. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
Web216ColorsFilter
public Web216ColorsFilter()
void ()
- Overrides:
in class Object
filterRGB
public int filterRGB(int x,
int y,
int rgb)
RGBImageFilter
method implementation.
- Overrides:
filterRGB
in class RGBImageFilter