ar.com.hjg.pngj.test
Class SampleConvertPalette

java.lang.Object
  extended by ar.com.hjg.pngj.test.SampleConvertPalette

public class SampleConvertPalette
extends Object

Example: convert a RGB8/RGBA8 image to palette using Kohonen quantizer Supports Alpha Does not support dithering yet


Constructor Summary
SampleConvertPalette()
           
 
Method Summary
static void convertPal(String origFilename, String destFilename)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleConvertPalette

public SampleConvertPalette()
Method Detail

convertPal

public static void convertPal(String origFilename,
                              String destFilename)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception