Class 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.
    • 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()
        Description copied from interface: PictureData
        Return the original image dimensions in points (for formats supported by BufferedImage). Will return a Dimension with a default width of 200x200 if the format unsupported.