Package overit.geocall.ux.util.gif
Class Quantize
java.lang.Object
overit.geocall.ux.util.gif.Quantize
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]quantizeImage(int[][] pixels, int max_colors) Reduce the image to the given number of colors.
-
Constructor Details
-
Quantize
public Quantize()
-
-
Method Details
-
quantizeImage
public static int[] quantizeImage(int[][] pixels, int max_colors) Reduce the image to the given number of colors. The pixels are reduced in place.- Parameters:
pixels- Array of pixelsmax_colors- The max number of color to reduce the image- Returns:
- The new color palette.
-