public class PaletteFactory extends Object
Modifier and Type | Field and Description |
---|---|
static int |
components |
Constructor and Description |
---|
PaletteFactory() |
Modifier and Type | Method and Description |
---|---|
int |
countTransparentColors(BufferedImage src) |
int |
countTrasparentColors(int[] rgbs) |
boolean |
hasTransparency(BufferedImage src) |
boolean |
hasTransparency(BufferedImage src,
int threshold) |
boolean |
isGrayscale(BufferedImage src) |
void |
makePaletteFancy(BufferedImage src) |
Palette |
makePaletteQuantized(BufferedImage src,
int max) |
SimplePalette |
makePaletteSimple(BufferedImage src,
int max) |
public static final int components
public void makePaletteFancy(BufferedImage src)
public Palette makePaletteQuantized(BufferedImage src, int max)
public SimplePalette makePaletteSimple(BufferedImage src, int max)
public boolean isGrayscale(BufferedImage src)
public boolean hasTransparency(BufferedImage src)
public boolean hasTransparency(BufferedImage src, int threshold)
public int countTrasparentColors(int[] rgbs)
public int countTransparentColors(BufferedImage src)
Copyright © 2007-2012. All Rights Reserved.