Class Quantize

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

public class Quantize extends Object
  • 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 pixels
      max_colors - The max number of color to reduce the image
      Returns:
      The new color palette.