org.apache.sanselan.palette
Class PaletteFactory

java.lang.Object
  extended by org.apache.sanselan.palette.PaletteFactory

public class PaletteFactory
extends java.lang.Object


Field Summary
static int components
           
 
Constructor Summary
PaletteFactory()
           
 
Method Summary
 int countTransparentColors(java.awt.image.BufferedImage src)
           
 int countTrasparentColors(int[] rgbs)
           
 boolean hasTransparency(java.awt.image.BufferedImage src)
           
 boolean hasTransparency(java.awt.image.BufferedImage src, int threshold)
           
 boolean isGrayscale(java.awt.image.BufferedImage src)
           
 void makePaletteFancy(java.awt.image.BufferedImage src)
           
 Palette makePaletteQuantized(java.awt.image.BufferedImage src, int max)
           
 SimplePalette makePaletteSimple(java.awt.image.BufferedImage src, int max)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

components

public static final int components
See Also:
Constant Field Values
Constructor Detail

PaletteFactory

public PaletteFactory()
Method Detail

makePaletteFancy

public void makePaletteFancy(java.awt.image.BufferedImage src)

makePaletteQuantized

public Palette makePaletteQuantized(java.awt.image.BufferedImage src,
                                    int max)

makePaletteSimple

public SimplePalette makePaletteSimple(java.awt.image.BufferedImage src,
                                       int max)

isGrayscale

public boolean isGrayscale(java.awt.image.BufferedImage src)

hasTransparency

public boolean hasTransparency(java.awt.image.BufferedImage src)

hasTransparency

public boolean hasTransparency(java.awt.image.BufferedImage src,
                               int threshold)

countTrasparentColors

public int countTrasparentColors(int[] rgbs)

countTransparentColors

public int countTransparentColors(java.awt.image.BufferedImage src)


Copyright © 2007-2009. All Rights Reserved.