ar.com.hjg.pngj.lossy
Class Posterize

java.lang.Object
  extended by ar.com.hjg.pngj.lossy.Posterize

public class Posterize
extends Object

Example: posterizes a image to n bits.


Constructor Summary
Posterize()
           
 
Method Summary
static void main(String[] args)
           
static void mainFromArgs(String[] args)
           
static void posterize(String origFilename, String destFilename, int nbits, boolean errorDiffusion)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Posterize

public Posterize()
Method Detail

main

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

mainFromArgs

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

posterize

public static void posterize(String origFilename,
                             String destFilename,
                             int nbits,
                             boolean errorDiffusion)