Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.poi.sl.image
Class ImageHeaderWMF

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

    @Internal
    public class ImageHeaderWMF

extends java.lang.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 Summary
`static int` | `APMHEADER_KEY`

Constructor Summary
`ImageHeaderWMF(byte[] data, int off)`
`ImageHeaderWMF(java.awt.Rectangle dim)`

Method Summary
`java.awt.Rectangle` | `getBounds()`
`int` | `getChecksum()` Returns a checksum value for the previous 10 shorts in the header.
`int` | `getLength()`
`java.awt.Dimension` | `getSize()`
`void` | `write(java.io.OutputStream out)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### APMHEADER_KEY

    public static final int APMHEADER_KEY

See Also:
  Constant Field Values

Constructor Detail

### ImageHeaderWMF

    public ImageHeaderWMF(java.awt.Rectangle dim)

### ImageHeaderWMF

    public ImageHeaderWMF(byte[] data,
                          int off)

Method Detail

### 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(java.io.OutputStream out)
               throws java.io.IOException

  Throws:
    `java.io.IOException`

### getSize

    public java.awt.Dimension getSize()

### getBounds

    public java.awt.Rectangle getBounds()

### getLength

    public int getLength()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2017 The Apache Software Foundation or its licensors, as applicable.