org.apache.poi.hslf.blip
Class Metafile

java.lang.Object
  extended by org.apache.poi.hslf.usermodel.HSLFPictureData
      extended by org.apache.poi.hslf.blip.Metafile
All Implemented Interfaces:
PictureData
Direct Known Subclasses:
EMF, PICT, WMF

public abstract class Metafile
extends HSLFPictureData

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.


Nested Class Summary
static class Metafile.Header
          A structure which represents a 34-byte header preceding the compressed metafile data
 
Nested classes/interfaces inherited from interface org.apache.poi.sl.usermodel.PictureData
PictureData.PictureType
 
Field Summary
 
Fields inherited from class org.apache.poi.hslf.usermodel.HSLFPictureData
CHECKSUM_SIZE
 
Constructor Summary
Metafile()
           
 
Method Summary
protected static byte[] compress(byte[] bytes, int offset, int length)
           
 java.awt.Dimension getImageDimension()
           
 
Methods inherited from class org.apache.poi.hslf.usermodel.HSLFPictureData
create, getChecksum, getChecksum, getContentType, getHeader, getImageDimensionInPixels, getIndex, getOffset, getRawData, getSignature, getUID, getUIDInstanceCount, setIndex, setOffset, setRawData, setSignature, setUIDInstanceCount, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.poi.sl.usermodel.PictureData
getData, getType, setData
 

Constructor Detail

Metafile

public Metafile()
Method Detail

compress

protected static byte[] compress(byte[] bytes,
                                 int offset,
                                 int length)
                          throws java.io.IOException
Throws:
java.io.IOException

getImageDimension

public java.awt.Dimension getImageDimension()