public class InverseColorMap
extends java.lang.Object
Constructor and Description |
---|
InverseColorMap() |
InverseColorMap(int rbits) |
Modifier and Type | Method and Description |
---|---|
void |
createInverseMap(int no_of_colors,
byte[] redPalette,
byte[] greenPalette,
byte[] bluePalette)
Create an inverse color map using the input forward Red, Green and Blue maps.
|
void |
createInverseMap(int no_of_colors,
int[] colorPalette)
Create an inverse color map using the input forward RGB map.
|
int |
getNearestColorIndex(byte red,
byte green,
byte blue) |
int |
getNearestColorIndex(int color) |
int |
getNearestColorIndex(int red,
int green,
int blue) |
public InverseColorMap()
public InverseColorMap(int rbits)
public int getNearestColorIndex(int color)
public int getNearestColorIndex(int red, int green, int blue)
public int getNearestColorIndex(byte red, byte green, byte blue)
public void createInverseMap(int no_of_colors, int[] colorPalette)
public void createInverseMap(int no_of_colors, byte[] redPalette, byte[] greenPalette, byte[] bluePalette)