public class SimpleColorIndexer extends Object implements ColorIndexer
Constructor and Description |
---|
SimpleColorIndexer(byte[][] colors) |
SimpleColorIndexer(IndexColorModel icm) |
Modifier and Type | Method and Description |
---|---|
int |
getClosestIndex(int r,
int g,
int b,
int a) |
IndexColorModel |
toIndexColorModel() |
public SimpleColorIndexer(byte[][] colors)
public SimpleColorIndexer(IndexColorModel icm)
public IndexColorModel toIndexColorModel()
toIndexColorModel
in interface ColorIndexer
IndexColorModel
related to the ColorIndexer
instancepublic int getClosestIndex(int r, int g, int b, int a)
getClosestIndex
in interface ColorIndexer
Copyright © 2006–2016 GeoSolutions. All rights reserved.