Metafilepublic abstract class Metafile extends PictureData Represents a metafile picture which can be one of the following types: EMF, WMF, or PICT.
A metafile is stored compressed using the ZIP deflate/inflate algorithm. |
Methods Summary |
---|
protected byte[] | compress(byte[] bytes, int offset, int length)
ByteArrayOutputStream out = new ByteArrayOutputStream();
DeflaterOutputStream deflater = new DeflaterOutputStream( out );
deflater.write(bytes, offset, length);
deflater.close();
return out.toByteArray();
|
|