public class Palette
extends java.util.ArrayList<java.awt.Color>
| Modifier and Type | Class and Description |
|---|---|
static class |
Palette.ColorComparator |
| Constructor and Description |
|---|
Palette() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
blues() |
java.awt.Color |
getClosestColor(java.awt.Color c2) |
java.awt.Color |
getClosestColor(float[] c2) |
static Palette |
getGrayPalette() |
static Palette |
getPalette(java.awt.image.BufferedImage src,
int size) |
static Palette |
getWebSafePalette() |
byte[] |
greens() |
byte[] |
reds() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizepublic static Palette getGrayPalette()
public java.awt.Color getClosestColor(java.awt.Color c2)
c2 - public java.awt.Color getClosestColor(float[] c2)
c2 - public static Palette getWebSafePalette()
public static Palette getPalette(java.awt.image.BufferedImage src, int size)
src - size - public byte[] reds()
public byte[] greens()
public byte[] blues()