Package com.twelvemonkeys.image
Class IndexImage.Counter
java.lang.Object
com.twelvemonkeys.image.IndexImage.Counter
- Enclosing class:
IndexImage
Used to track a color and the number of pixels of that colors
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
val
public int valField val -
count
public int countField 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, otherwisefalse
-