Class Metafile

  • All Implemented Interfaces:
    GenericRecord, 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.
    • 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()