to.etc.sjit
Class BColorQuantizer

java.lang.Object
  extended by to.etc.sjit.BColorQuantizer

public class BColorQuantizer
extends java.lang.Object


Constructor Summary
BColorQuantizer()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static java.awt.image.BufferedImage quantizeImage(java.awt.image.BufferedImage srcbi, int max_colors, boolean quick)
          Reduce the image to the given number of colors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BColorQuantizer

public BColorQuantizer()
Method Detail

quantizeImage

public static java.awt.image.BufferedImage quantizeImage(java.awt.image.BufferedImage srcbi,
                                                         int max_colors,
                                                         boolean quick)
Reduce the image to the given number of colors. The pixels are reduced in place. The image type returned is an Indexed buffer type.

Returns:
The new color palette.

main

public static void main(java.lang.String[] args)