public class PNGEncoder extends AbstractImageEncoder
img, ofile| Constructor and Description |
|---|
PNGEncoder() |
| Modifier and Type | Method and Description |
|---|---|
int |
compress(byte[] outarray,
byte[] pixelarray,
int width,
int height) |
int |
compress(byte[] outarray,
int[] pixelarray,
ColorModel cmodel,
int width,
int height) |
void |
saveImage() |
byteFromChar, byteFromInt, bytesFromLong, compressColor, compressColor, createByte, encode, encode, error, snapshotpublic void saveImage()
throws IOException,
EncoderException
saveImage in class AbstractImageEncoderIOExceptionEncoderExceptionpublic int compress(byte[] outarray,
int[] pixelarray,
ColorModel cmodel,
int width,
int height)
throws EncoderException
EncoderExceptionpublic int compress(byte[] outarray,
byte[] pixelarray,
int width,
int height)
throws EncoderException
EncoderExceptionCopyright © 2018. All rights reserved.