org.apache.poi.hemf.record.emf

## Class HemfHeader

- java.lang.Object
- - org.apache.poi.hemf.record.emf.HemfHeader

- All Implemented Interfaces:
    GenericRecord, HemfRecord

      @Internal
      public class HemfHeader
      extends java.lang.Object
      implements HemfRecord

  Extracts the full header from EMF files.
  See Also:
    `ImageHeaderEMF`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HemfHeader()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getbOpenGL()`
    `java.awt.geom.Rectangle2D` | `getBoundsRectangle()`
    `long` | `getBytes()`
    `long` | `getCbPixelFormat()`
    `java.lang.String` | `getDescription()`
    `java.awt.geom.Dimension2D` | `getDeviceDimension()`
    `HemfRecordType` | `getEmfRecordType()`
    `java.awt.geom.Rectangle2D` | `getFrameRectangle()`
    `java.util.Map<java.lang.String,java.util.function.Supplier<?>>` | `getGenericProperties()`
    `int` | `getHandles()`
    `java.awt.geom.Dimension2D` | `getMicroDimension()`
    `java.awt.geom.Dimension2D` | `getMilliDimension()`
    `long` | `getNPalEntries()`
    `long` | `getOffPixelFormat()`
    `long` | `getRecords()`
    `long` | `init(LittleEndianInputStream leis, long recordSize, long recordId)` Init record from stream
    `boolean` | `isHasExtension1()`
    `boolean` | `isHasExtension2()`
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface org.apache.poi.hemf.record.emf.HemfRecord

      `draw, getGenericRecordType, setHeader`

    - ### Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord

      `getGenericChildren`

- - ### Constructor Detail

    - #### HemfHeader

          public HemfHeader()

  - ### Method Detail

    - #### getBoundsRectangle

          public java.awt.geom.Rectangle2D getBoundsRectangle()

    - #### getFrameRectangle

          public java.awt.geom.Rectangle2D getFrameRectangle()

    - #### getBytes

          public long getBytes()

    - #### getRecords

          public long getRecords()

    - #### getHandles

          public int getHandles()

    - #### getDescription

          public java.lang.String getDescription()

    - #### getNPalEntries

          public long getNPalEntries()

    - #### isHasExtension1

          public boolean isHasExtension1()

    - #### getCbPixelFormat

          public long getCbPixelFormat()

    - #### getOffPixelFormat

          public long getOffPixelFormat()

    - #### getbOpenGL

          public long getbOpenGL()

    - #### isHasExtension2

          public boolean isHasExtension2()

    - #### getDeviceDimension

          public java.awt.geom.Dimension2D getDeviceDimension()

    - #### getMilliDimension

          public java.awt.geom.Dimension2D getMilliDimension()

    - #### getMicroDimension

          public java.awt.geom.Dimension2D getMicroDimension()

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### getEmfRecordType

          public HemfRecordType getEmfRecordType()

      Specified by:
        `getEmfRecordType` in interface `HemfRecord`

    - #### init

          public long init(LittleEndianInputStream leis,
                           long recordSize,
                           long recordId)
                    throws java.io.IOException

      Description copied from interface: `HemfRecord`
      Init record from stream
      Specified by:
        `init` in interface `HemfRecord`
      Parameters:
        `leis` - the little endian input stream
        `recordSize` - the size limit for this record
        `recordId` - the id of the `HemfRecordType`
      Returns:
        count of processed bytes
      Throws:
        `java.io.IOException` - when the inputstream is malformed

    - #### getGenericProperties

          public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()

      Specified by:
        `getGenericProperties` in interface `GenericRecord`

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