Package org.apache.poi.hslf.blip
Class Metafile
- java.lang.Object
-
- org.apache.poi.hslf.usermodel.HSLFPictureData
-
- org.apache.poi.hslf.blip.Metafile
-
- All Implemented Interfaces:
GenericRecord,PictureData
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
Nested Classes Modifier and Type Class Description static classMetafile.HeaderA 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
Constructors Modifier Constructor Description protectedMetafile(EscherContainerRecord recordContainer, EscherBSERecord bse)Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static byte[]compress(byte[] bytes, int offset, int length)DimensiongetImageDimension()-
Methods inherited from class org.apache.poi.hslf.usermodel.HSLFPictureData
create, formatImageForSlideshow, getChecksum, getChecksum, getContentType, getGenericProperties, getHeader, getImageDimensionInPixels, getIndex, getOffset, getRawData, getSignature, getUID, getUIDInstanceCount, setData, 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.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
Methods inherited from interface org.apache.poi.sl.usermodel.PictureData
getData, getType
-
-
-
-
Constructor Detail
-
Metafile
@Internal protected Metafile(EscherContainerRecord recordContainer, EscherBSERecord bse)
Creates a new instance.- Parameters:
recordContainer- Record tracking all pictures. Should be attached to the slideshow that this picture is linked to.bse- Record referencing this picture. Should be attached to the slideshow that this picture is linked to.
-
-
Method Detail
-
compress
protected static byte[] compress(byte[] bytes, int offset, int length)
-
getImageDimension
public Dimension getImageDimension()
-
-