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.
-
IMAGE_ERROR
-
-
IMAGE_IS_NOT_READY
-
-
IMAGE_OK
-
-
PNGDecoder(InputStream)
- Constructs PNG encoder
-
PNGDecoder(String)
- Constructs PNG decoder
-
PNGDecoder(URL)
- Constructs PNG encoder
-
decode()
- Reads and decodes PNG image
-
imageUpdate(Image, int, int, int, int, int)
- Is called when previously requested information about an image becomes available.
-
status()
- Returns status of the image.
IMAGE_IS_NOT_READY
public static final int IMAGE_IS_NOT_READY
IMAGE_OK
public static final int IMAGE_OK
IMAGE_ERROR
public static final int IMAGE_ERROR
PNGDecoder
public PNGDecoder(String filename) throws IOException, FileNotFoundException
- Constructs PNG decoder
- Parameters:
- String - filename - name of file with PNG image
PNGDecoder
public PNGDecoder(URL url) throws IOException
- Constructs PNG encoder
- Parameters:
- URL - url - URL with PNG image
PNGDecoder
public PNGDecoder(InputStream in) throws IOException
- Constructs PNG encoder
- Parameters:
- InputStream - in - input stream with PNG image
decode
public Image decode() throws PNGException, IOException
- Reads and decodes PNG image
- Returns:
- Image - created image
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
status
public int status()
- Returns status of the image.
All Packages Class Hierarchy This Package Previous Next Index