MetafileHeader

Inheritance: java.lang.Object

public final class MetafileHeader

Contains attributes of an associated Metafile. Not inheritable.

Methods

MethodDescription
getType()Gets the type of the associated Metafile
getEmfPlusHeaderSize()Gets the size, in bytes, of the enhanced metafile plus header file.
getWmfHeader()Gets the Windows metafile (WMF) header file for the associated Metafile.
getBounds()Gets a Rectangle that bounds the associated Metafile.
getDpiX()Gets the horizontal resolution, in dots per inch, of the associated Metafile.
getDpiY()Gets the vertical resolution, in dots per inch, of the associated Metafile.
getVersion()Gets the version number of the associated Metafile.
getMetafileSize()Gets the size, in bytes, of the associated Metafile.
getLogicalDpiX()Gets the logical horizontal resolution, in dots per inch, of the associated Metafile.
getLogicalDpiY()Gets the logical vertical resolution, in dots per inch, of the associated Metafile.
isDisplay()Returns a value that indicates whether the associated Metafile is device dependent.
isEmf()Returns a value that indicates whether the associated Metafile is in the Windows enhanced metafile format.
isEmfOrEmfPlus()Returns a value that indicates whether the associated Metafile is in the Windows enhanced metafile format or the Windows enhanced metafile plus format.
isEmfPlus()Returns a value that indicates whether the associated Metafile is in the Windows enhanced metafile plus format.
isEmfPlusDual()Returns a value that indicates whether the associated Metafile is in the Dual enhanced metafile format.
isEmfPlusOnly()Returns a value that indicates whether the associated Metafile supports only the Windows enhanced metafile plus format.
isWmf()Returns a value that indicates whether the associated Metafile is in the Windows metafile format.
isWmfPlaceable()Returns a value that indicates whether the associated Metafile is in the Windows placeable metafile format.

getType()

public int getType()

Gets the type of the associated Metafile

Returns: int

getEmfPlusHeaderSize()

public int getEmfPlusHeaderSize()

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

Returns: int

getWmfHeader()

public MetaHeader getWmfHeader()

Gets the Windows metafile (WMF) header file for the associated Metafile.

Returns: MetaHeader

getBounds()

public Rectangle getBounds()

Gets a Rectangle that bounds the associated Metafile.

Returns: Rectangle

getDpiX()

public float getDpiX()

Gets the horizontal resolution, in dots per inch, of the associated Metafile.

Returns: float

getDpiY()

public float getDpiY()

Gets the vertical resolution, in dots per inch, of the associated Metafile.

Returns: float

getVersion()

public int getVersion()

Gets the version number of the associated Metafile.

Returns: int

getMetafileSize()

public int getMetafileSize()

Gets the size, in bytes, of the associated Metafile.

Returns: int

getLogicalDpiX()

public int getLogicalDpiX()

Gets the logical horizontal resolution, in dots per inch, of the associated Metafile.

Returns: int

getLogicalDpiY()

public int getLogicalDpiY()

Gets the logical vertical resolution, in dots per inch, of the associated Metafile.

Returns: int

isDisplay()

public boolean isDisplay()

Returns a value that indicates whether the associated Metafile is device dependent.

Returns: boolean - True if the associated Metafile is device dependent; otherwise, false.

isEmf()

public boolean isEmf()

Returns a value that indicates whether the associated Metafile is in the Windows enhanced metafile format.

Returns: boolean - True if the associated Metafile is in the Windows enhanced metafile format; otherwise, false.

isEmfOrEmfPlus()

public boolean isEmfOrEmfPlus()

Returns a value that indicates whether the associated Metafile is in the Windows enhanced metafile format or the Windows enhanced metafile plus format.

Returns: boolean - True if the associated Metafile is in the Windows enhanced metafile format or the Windows enhanced metafile plus format; otherwise, false.

isEmfPlus()

public boolean isEmfPlus()

Returns a value that indicates whether the associated Metafile is in the Windows enhanced metafile plus format.

Returns: boolean - True if the associated Metafile is in the Windows enhanced metafile plus format; otherwise, false.

isEmfPlusDual()

public boolean isEmfPlusDual()

Returns a value that indicates whether the associated 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 is in the Dual enhanced metafile format; otherwise, false.

isEmfPlusOnly()

public boolean isEmfPlusOnly()

Returns a value that indicates whether the associated Metafile supports only the Windows enhanced metafile plus format.

Returns: boolean - True if the associated Metafile supports only the Windows enhanced metafile plus format; otherwise, false.

isWmf()

public boolean isWmf()

Returns a value that indicates whether the associated Metafile is in the Windows metafile format.

Returns: boolean - True if the associated Metafile is in the Windows metafile format; otherwise, false.

isWmfPlaceable()

public boolean isWmfPlaceable()

Returns a value that indicates whether the associated Metafile is in the Windows placeable metafile format.

Returns: boolean - True if the associated Metafile is in the Windows placeable metafile format; otherwise, false.