All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.activated.jimi.util.ColorReducer
java.lang.Object
   |
   +----com.activated.jimi.util.ColorReducer

  Summary

public class  ColorReducer
     extends java.lang.Object
{
          // Constructors 2
     public ColorReducer(int);
     public ColorReducer(int, boolean);

          // Methods 4
     public Image getColorReducedImage(Image) throws JimiException;
     public Image getColorReducedImage(ImageProducer) throws JimiException;
     public ImageProducer getColorReducedImageProducer(Image) throws JimiException;
     public ImageProducer getColorReducedImageProducer(ImageProducer) throws JimiException;
}

ColorReducer performs color reduction, with optional dithering, on an image to convert it to use a fixed-size palette. It can reduce the number of colors used by a palette image, or convert an RGB image to a palette image.




  Constructors

· ColorReducer

Summary  |  Top

   public ColorReducer(int maxColors) 

Creates a ColorReducer to perform color reduction on an Image without any dithering.

Parameter Description
maxColors the maximum number of colors in the reduced image



· ColorReducer

Summary  |  Top
   public ColorReducer(int maxColors, 
                       boolean dither) 

Creates a ColorReducer to perform color reduction on an Image.

Parameter Description
maxColors the maximum number of colors in the reduced image
dither true if the image should be dithered to create smoother results



  Methods

· getColorReducedImageProducer

Summary  |  Top
   public ImageProducer getColorReducedImageProducer(ImageProducer producer)  throws JimiException

Perform color reduction.

Parameter Description
producer the ImageProducer to draw image data from



· getColorReducedImageProducer

Summary  |  Top
   public ImageProducer getColorReducedImageProducer(Image image)  throws JimiException

Perform color reduction.

Parameter Description
image the Image to draw image data from



· getColorReducedImage

Summary  |  Top
   public Image getColorReducedImage(ImageProducer producer)  throws JimiException

Perform color reduction.

Parameter Description
producer the ImageProducer to draw image data from



· getColorReducedImage

Summary  |  Top
   public Image getColorReducedImage(Image image)  throws JimiException

Perform color reduction.

Parameter Description
image the Image to draw image data from



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7