All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.visualtek.png.PNGDecoder

java.lang.Object
   |
   +----com.visualtek.png.PNGDecoder

public class PNGDecoder
extends Object
implements ImageObserver
PNG decoder.


Variable Index

 o IMAGE_ERROR
 o IMAGE_IS_NOT_READY
 o IMAGE_OK

Constructor Index

 o PNGDecoder(InputStream)
Constructs PNG encoder
 o PNGDecoder(String)
Constructs PNG decoder
 o PNGDecoder(URL)
Constructs PNG encoder

Method Index

 o decode()
Reads and decodes PNG image
 o imageUpdate(Image, int, int, int, int, int)
Is called when previously requested information about an image becomes available.
 o status()
Returns status of the image.

Variables

 o IMAGE_IS_NOT_READY
 public static final int IMAGE_IS_NOT_READY
 o IMAGE_OK
 public static final int IMAGE_OK
 o IMAGE_ERROR
 public static final int IMAGE_ERROR

Constructors

 o PNGDecoder
 public PNGDecoder(String filename) throws IOException, FileNotFoundException
Constructs PNG decoder

Parameters:
String - filename - name of file with PNG image
 o PNGDecoder
 public PNGDecoder(URL url) throws IOException
Constructs PNG encoder

Parameters:
URL - url - URL with PNG image
 o PNGDecoder
 public PNGDecoder(InputStream in) throws IOException
Constructs PNG encoder

Parameters:
InputStream - in - input stream with PNG image

Methods

 o decode
 public Image decode() throws PNGException, IOException
Reads and decodes PNG image

Returns:
Image - created image
 o imageUpdate
 public boolean imageUpdate(Image img,
                            int infoflags,
                            int x,
                            int y,
                            int width,
                            int height)
Is called when previously requested information about an image becomes available.

See Also:
ImageObserver
 o status
 public int status()
Returns status of the image.


All Packages  Class Hierarchy  This Package  Previous  Next  Index