public abstract class PNGLoader extends Object
| Constructor and Description |
|---|
PNGLoader(InputStream in)
Constructs a PNGDecoder object.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract WriteableRaster |
createRaster(int width,
int height) |
Raster |
decode()
Decodes image from an input stream passed into constructor.
|
Raster |
decode(boolean closeStream)
Decodes image from an input stream passed into constructor.
|
public PNGLoader(InputStream in)
in - input stream to read PNG image from.public Raster decode() throws IOException
IOException - todo documentprotected abstract WriteableRaster createRaster(int width, int height)
public Raster decode(boolean closeStream) throws IOException
closeStream - requests method to close the stream after the image is readIOException - todo documentCopyright © 2018. All rights reserved.