http://www.eteks.com

com.eteks.filter
Class Web216ColorsFilter

java.lang.Object
  |
  +--java.awt.image.ImageFilter
        |
        +--java.awt.image.RGBImageFilter
              |
              +--com.eteks.filter.Web216ColorsFilter
All Implemented Interfaces:
java.lang.Cloneable, java.awt.image.ImageConsumer

public class Web216ColorsFilter
extends java.awt.image.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
Version:
1.1
Author:
Emmanuel Puybaret

Fields inherited from class java.awt.image.RGBImageFilter
canFilterIndexColorModel, newmodel, origmodel
 
Fields inherited from class java.awt.image.ImageFilter
consumer
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
Web216ColorsFilter()
           
 
Method Summary
 int filterRGB(int x, int y, int rgb)
          RGBImageFilter method implementation.
 
Methods inherited from class java.awt.image.RGBImageFilter
filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Web216ColorsFilter

public Web216ColorsFilter()
Method Detail

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
RGBImageFilter method implementation.
Overrides:
filterRGB in class java.awt.image.RGBImageFilter

© 1997-2001 eTeks - All rights reserved