Package overit.geocall.ux.util.gif
Class QuantizedGIFEncoder
java.lang.Object
overit.geocall.ux.util.gif.QuantizedGIFEncoder
Test color quantization of an image.
Usage: Test [image file] [# colors] [# colors] ...
For example:
java quantize.TestQuantize gub.jpg 100 50 20 10will display gub.jpg with 100, 50, 20, and 10 colors.
- Version:
- 0.90 19 Sep 2000
-
Constructor Summary
ConstructorsConstructorDescriptionQuantizedGIFEncoder(Image i, int n) Creates a new instance of QuantizedGIFEncoder -
Method Summary
-
Constructor Details
-
QuantizedGIFEncoder
Creates a new instance of QuantizedGIFEncoder- Parameters:
i- The Imagen- The number indicating the max number of color to reduce the image- Throws:
IOException- If an I/O exception occurs
-
-
Method Details
-
write
Write in the OutputStream- Parameters:
os- The OutputStream- Throws:
IOException- If an I/O exception occurs
-