<PackageReference Include="System.Drawing.Common" Version="9.0.5" />

MetafileHeader

public sealed class MetafileHeader
Contains attributes of an associated Metafile. Not inheritable.
public Rectangle Bounds { get; }

Gets a Rectangle that bounds the associated Metafile.

public float DpiX { get; }

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

public float DpiY { get; }

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

public int EmfPlusHeaderSize { get; }

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

public int LogicalDpiX { get; }

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

public int LogicalDpiY { get; }

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

public int MetafileSize { get; }

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

public MetafileType Type { get; }

Gets the type of the associated Metafile.

public int Version { get; }

Gets the version number of the associated Metafile.

public MetaHeader WmfHeader { get; }

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

public bool IsDisplay()

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

public bool IsEmf()

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

public bool IsEmfOrEmfPlus()

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

public bool IsEmfPlus()

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

public bool 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.

public bool IsEmfPlusOnly()

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

public bool IsWmf()

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

public bool IsWmfPlaceable()

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