Class IndexImage.Counter

java.lang.Object
com.twelvemonkeys.image.IndexImage.Counter
Enclosing class:
IndexImage

private static class IndexImage.Counter extends Object
Used to track a color and the number of pixels of that colors
  • Field Details

    • val

      public int val
      Field val
    • count

      public int count
      Field count
  • Constructor Details

    • Counter

      public Counter(int val)
      Constructor Counter
      Parameters:
      val - the initial value
  • Method Details

    • add

      public boolean add(int val)
      Method add
      Parameters:
      val - the new value
      Returns:
      true if the value was added, otherwise false