org.xwt.translators
Class PNG

java.lang.Object
  extended byorg.xwt.translators.PNG

public class PNG
extends java.lang.Object

Converts an InputStream carrying a PNG image into an ARGB int[]


Constructor Summary
PNG()
           
 
Method Summary
 Picture fromInputStream(java.io.InputStream is, java.lang.String name)
          process a PNG as an inputstream; returns null if there is an error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PNG

public PNG()
Method Detail

fromInputStream

public Picture fromInputStream(java.io.InputStream is,
                               java.lang.String name)
                        throws java.io.IOException
process a PNG as an inputstream; returns null if there is an error

Parameters:
name - A string describing the image, to be used when logging errors
Throws:
java.io.IOException