code: @Override
      public void addPixels(int[] pixels, int offset, int count) {
          for (int i = 0; i < count; i++) {
              insertColor(pixels[i + offset]);
              if (colors > reduceColors)
                  reduceTree(reduceColors);
          }
      }
docs: Add pixels to the quantizer.
  @param pixels the array of ARGB pixels
  @param offset the offset into the array
  @param count the count of pixels