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 Details

    • Metafile

      public Metafile()
  • Method Details

    • compress

      protected static byte[] compress(byte[] bytes, int offset, int length) throws IOException
      Throws:
      IOException
    • getImageDimension

      public 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.