Class ImageHeaderWMF

java.lang.Object
org.apache.poi.sl.image.ImageHeaderWMF

@Internal public class ImageHeaderWMF extends Object
Aldus Placeable Metafile header - 22 byte structure before WMF data.
  • int Key; Magic number (always 9AC6CDD7h)
  • short Handle; Metafile HANDLE number (always 0)
  • short Left; Left coordinate in metafile units
  • short Top; Top coordinate in metafile units
  • short Right; Right coordinate in metafile units
  • short Bottom; Bottom coordinate in metafile units
  • short Inch; Number of metafile units per inch
  • int Reserved; Reserved (always 0)
  • short Checksum; Checksum value for previous 10 shorts
  • Field Details

  • Constructor Details

    • ImageHeaderWMF

      public ImageHeaderWMF(Rectangle dim)
    • ImageHeaderWMF

      public ImageHeaderWMF(byte[] data, int off)
  • Method Details

    • getChecksum

      public int getChecksum()
      Returns a checksum value for the previous 10 shorts in the header. The checksum is calculated by XORing each short value to an initial value of 0:
    • write

      public void write(OutputStream out) throws IOException
      Throws:
      IOException
    • getSize

      public Dimension getSize()
    • getBounds

      public Rectangle getBounds()
    • getLength

      public int getLength()