Class QuantizedGIFEncoder

java.lang.Object
overit.geocall.ux.util.gif.QuantizedGIFEncoder

public class QuantizedGIFEncoder extends Object
Test color quantization of an image.

Usage: Test [image file] [# colors] [# colors] ...

For example:

java quantize.TestQuantize gub.jpg 100 50 20 10
will display gub.jpg with 100, 50, 20, and 10 colors.
Version:
0.90 19 Sep 2000
  • Constructor Details

    • QuantizedGIFEncoder

      public QuantizedGIFEncoder(Image i, int n) throws IOException
      Creates a new instance of QuantizedGIFEncoder
      Parameters:
      i - The Image
      n - The number indicating the max number of color to reduce the image
      Throws:
      IOException - If an I/O exception occurs
  • Method Details

    • write

      public void write(OutputStream os) throws IOException
      Write in the OutputStream
      Parameters:
      os - The OutputStream
      Throws:
      IOException - If an I/O exception occurs