**Inheritance:**
java.lang.Object
```
public final class MetafileHeader
```

Contains attributes of an associated [Metafile](../../com.aspose.drawing.imaging/metafile). Not inheritable.
## Methods

| Method | Description |
| --- | --- |
| [getType()](#getType--) | Gets the type of the associated [Metafile](../../com.aspose.drawing.imaging/metafile) |
| [getEmfPlusHeaderSize()](#getEmfPlusHeaderSize--) | Gets the size, in bytes, of the enhanced metafile plus header file. |
| [getWmfHeader()](#getWmfHeader--) | Gets the Windows metafile (WMF) header file for the associated [Metafile](../../com.aspose.drawing.imaging/metafile). |
| [getBounds()](#getBounds--) | Gets a [Rectangle](../../com.aspose.drawing/rectangle) that bounds the associated [Metafile](../../com.aspose.drawing.imaging/metafile). |
| [getDpiX()](#getDpiX--) | Gets the horizontal resolution, in dots per inch, of the associated [Metafile](../../com.aspose.drawing.imaging/metafile). |
| [getDpiY()](#getDpiY--) | Gets the vertical resolution, in dots per inch, of the associated [Metafile](../../com.aspose.drawing.imaging/metafile). |
| [getVersion()](#getVersion--) | Gets the version number of the associated [Metafile](../../com.aspose.drawing.imaging/metafile). |
| [getMetafileSize()](#getMetafileSize--) | Gets the size, in bytes, of the associated [Metafile](../../com.aspose.drawing.imaging/metafile). |
| [getLogicalDpiX()](#getLogicalDpiX--) | Gets the logical horizontal resolution, in dots per inch, of the associated [Metafile](../../com.aspose.drawing.imaging/metafile). |
| [getLogicalDpiY()](#getLogicalDpiY--) | Gets the logical vertical resolution, in dots per inch, of the associated [Metafile](../../com.aspose.drawing.imaging/metafile). |
| [isDisplay()](#isDisplay--) | Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is device dependent. |
| [isEmf()](#isEmf--) | Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows enhanced metafile format. |
| [isEmfOrEmfPlus()](#isEmfOrEmfPlus--) | Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows enhanced metafile format or the Windows enhanced metafile plus format. |
| [isEmfPlus()](#isEmfPlus--) | Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows enhanced metafile plus format. |
| [isEmfPlusDual()](#isEmfPlusDual--) | Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Dual enhanced metafile format. |
| [isEmfPlusOnly()](#isEmfPlusOnly--) | Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) supports only the Windows enhanced metafile plus format. |
| [isWmf()](#isWmf--) | Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows metafile format. |
| [isWmfPlaceable()](#isWmfPlaceable--) | Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows placeable metafile format. |
### getType() {#getType--}
```
public int getType()
```


Gets the type of the associated [Metafile](../../com.aspose.drawing.imaging/metafile)

**Returns:**
int
### getEmfPlusHeaderSize() {#getEmfPlusHeaderSize--}
```
public int getEmfPlusHeaderSize()
```


Gets the size, in bytes, of the enhanced metafile plus header file.

**Returns:**
int
### getWmfHeader() {#getWmfHeader--}
```
public MetaHeader getWmfHeader()
```


Gets the Windows metafile (WMF) header file for the associated [Metafile](../../com.aspose.drawing.imaging/metafile).

**Returns:**
[MetaHeader](../../com.aspose.drawing.imaging/metaheader)
### getBounds() {#getBounds--}
```
public Rectangle getBounds()
```


Gets a [Rectangle](../../com.aspose.drawing/rectangle) that bounds the associated [Metafile](../../com.aspose.drawing.imaging/metafile).

**Returns:**
[Rectangle](../../com.aspose.drawing/rectangle)
### getDpiX() {#getDpiX--}
```
public float getDpiX()
```


Gets the horizontal resolution, in dots per inch, of the associated [Metafile](../../com.aspose.drawing.imaging/metafile).

**Returns:**
float
### getDpiY() {#getDpiY--}
```
public float getDpiY()
```


Gets the vertical resolution, in dots per inch, of the associated [Metafile](../../com.aspose.drawing.imaging/metafile).

**Returns:**
float
### getVersion() {#getVersion--}
```
public int getVersion()
```


Gets the version number of the associated [Metafile](../../com.aspose.drawing.imaging/metafile).

**Returns:**
int
### getMetafileSize() {#getMetafileSize--}
```
public int getMetafileSize()
```


Gets the size, in bytes, of the associated [Metafile](../../com.aspose.drawing.imaging/metafile).

**Returns:**
int
### getLogicalDpiX() {#getLogicalDpiX--}
```
public int getLogicalDpiX()
```


Gets the logical horizontal resolution, in dots per inch, of the associated [Metafile](../../com.aspose.drawing.imaging/metafile).

**Returns:**
int
### getLogicalDpiY() {#getLogicalDpiY--}
```
public int getLogicalDpiY()
```


Gets the logical vertical resolution, in dots per inch, of the associated [Metafile](../../com.aspose.drawing.imaging/metafile).

**Returns:**
int
### isDisplay() {#isDisplay--}
```
public boolean isDisplay()
```


Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is device dependent.

**Returns:**
boolean - True if the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is device dependent; otherwise, false.
### isEmf() {#isEmf--}
```
public boolean isEmf()
```


Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows enhanced metafile format.

**Returns:**
boolean - True if the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows enhanced metafile format; otherwise, false.
### isEmfOrEmfPlus() {#isEmfOrEmfPlus--}
```
public boolean isEmfOrEmfPlus()
```


Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows enhanced metafile format or the Windows enhanced metafile plus format.

**Returns:**
boolean - True if the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows enhanced metafile format or the Windows enhanced metafile plus format; otherwise, false.
### isEmfPlus() {#isEmfPlus--}
```
public boolean isEmfPlus()
```


Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows enhanced metafile plus format.

**Returns:**
boolean - True if the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows enhanced metafile plus format; otherwise, false.
### isEmfPlusDual() {#isEmfPlusDual--}
```
public boolean isEmfPlusDual()
```


Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Dual enhanced metafile format. This format supports both the enhanced and the enhanced plus format.

**Returns:**
boolean - True if the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Dual enhanced metafile format; otherwise, false.
### isEmfPlusOnly() {#isEmfPlusOnly--}
```
public boolean isEmfPlusOnly()
```


Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) supports only the Windows enhanced metafile plus format.

**Returns:**
boolean - True if the associated [Metafile](../../com.aspose.drawing.imaging/metafile) supports only the Windows enhanced metafile plus format; otherwise, false.
### isWmf() {#isWmf--}
```
public boolean isWmf()
```


Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows metafile format.

**Returns:**
boolean - True if the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows metafile format; otherwise, false.
### isWmfPlaceable() {#isWmfPlaceable--}
```
public boolean isWmfPlaceable()
```


Returns a value that indicates whether the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows placeable metafile format.

**Returns:**
boolean - True if the associated [Metafile](../../com.aspose.drawing.imaging/metafile) is in the Windows placeable metafile format; otherwise, false.
