Package overit.geocall.ux.util.gif
Class WeightedColorReducer
java.lang.Object
overit.geocall.ux.util.gif.WeightedColorReducer
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
ConstructorsConstructorDescriptionCreates a new instance of WeightedColorReducer -
Method Summary
-
Constructor Details
-
WeightedColorReducer
Creates a new instance of WeightedColorReducer- Parameters:
i- The Image
-
-
Method Details
-
reduce
Reduce the Image- Parameters:
n- Int indicating the reduction- Returns:
- The reduced Image
- Throws:
IOException- If an I/O exception occurs
-
write
Write in the OutputStream- Parameters:
os- The OutputStream- Throws:
IOException- If an I/O exception occurs
-
getPixels
- Throws:
IOException
-