org.apache.sanselan.palette
Class QuantizedPalette

java.lang.Object
  extended by org.apache.sanselan.palette.Palette
      extended by org.apache.sanselan.palette.QuantizedPalette

public class QuantizedPalette
extends Palette


Constructor Summary
QuantizedPalette(java.util.ArrayList subsets, int precision)
           
 
Method Summary
 void dump()
           
 int getEntry(int index)
           
 int getPaletteIndex(int rgb)
           
 int length()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuantizedPalette

public QuantizedPalette(java.util.ArrayList subsets,
                        int precision)
Method Detail

getPaletteIndex

public int getPaletteIndex(int rgb)
                    throws ImageWriteException
Specified by:
getPaletteIndex in class Palette
Throws:
ImageWriteException

dump

public void dump()
Overrides:
dump in class Palette

getEntry

public int getEntry(int index)
Specified by:
getEntry in class Palette

length

public int length()
Specified by:
length in class Palette


Copyright © 2007-2009. All Rights Reserved.