Class IndexImage.Counter
- java.lang.Object
-
- org.apache.batik.ext.awt.image.rendered.IndexImage.Counter
-
- Enclosing class:
- IndexImage
private static class IndexImage.Counter extends java.lang.Object
Used to track a color and the number of pixels of that colors
-
-
Constructor Summary
Constructors Constructor Description Counter(int val)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
add(int val)
(package private) int[]
getRgb(int[] rgb)
convert the color-point of this counter to an rgb-array.
-
-
-
Method Detail
-
add
boolean add(int val)
-
getRgb
int[] getRgb(int[] rgb)
convert the color-point of this counter to an rgb-array. To avoid creating lots of arrays, the caller passes the array to store the result.- Parameters:
rgb
- an int[ 3 ] to store the result.- Returns:
- an int-array with rgb-color-values (same as rgb-parameter)
-
-