Class EmfPlusHeader

Class EmfPlusHeader

Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Records
Assembly: Aspose.Imaging.dll (25.2.0)

The EmfPlusHeader record specifies the start of EMF+ data in the metafile. The EmfPlusHeader record MUST be embedded in an EMF EMR_COMMENT_EMFPLUS record, which MUST be the record immediately following the EMF header in the metafile. The EMR_COMMENT_EMFPLUS record is specified in [MS-EMF] section 2.3.3.2.

public sealed class EmfPlusHeader : EmfPlusControlRecordType

Inheritance

objectMetaObjectEmfPlusRecordEmfPlusControlRecordTypeEmfPlusHeader

Inherited Members

EmfPlusRecord.Type, EmfPlusRecord.Flags, EmfPlusRecord.Size, EmfPlusRecord.DataSize, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

EmfPlusHeader(EmfPlusRecord)

Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.EmfPlus.Records.EmfPlusHeader class.

public EmfPlusHeader(EmfPlusRecord source)

Parameters

source EmfPlusRecord

The source.

Properties

DualMode

Gets or sets a value indicating whether [dual mode]. If set, this flag indicates that this metafile is “dual-mode”, which means that it contains two sets of records, each of which completely specifies the graphics content. If clear, the graphics content is specified by EMF+ records, and possibly EMF records that are preceded by an EmfPlusGetDC record. If this flag is set, EMF records alone SHOULD suffice to define the graphics content. Note that whether the “dual-mode” flag is set or not, some EMF records are always present, namely EMF control records and the EMF records that contain EMF+ records. EMF control records are specified in [MS-EMF] section 2.3.4.

public bool DualMode { get; set; }

Property Value

bool

EmfPlusFlags

Gets or sets the EMF plus flags. A 32-bit unsigned integer that contains information about how this metafile was recorded. if 31-st bit of the field is set, this flag indicates that the metafile was recorded with a reference device context for a video display. If clear, the metafile was recorded with a reference device context for a printer.

public int EmfPlusFlags { get; set; }

Property Value

int

IsValid

Gets a value indicating whether this instance is valid.

public bool IsValid { get; }

Property Value

bool

LogicalDpiX

Gets or sets the logical dpi x. A 32-bit unsigned integer that specifies the horizontal resolution for which the metafile was recorded, in units of pixels per inch.

public int LogicalDpiX { get; set; }

Property Value

int

LogicalDpiY

Gets or sets the logical dpi y. A 32-bit unsigned integer that specifies the vertical resolution for which the metafile was recorded, in units of lines per inch

public int LogicalDpiY { get; set; }

Property Value

int

Version

Gets or sets the version. An EmfPlusGraphicsVersion object (section 2.2.2.19) that specifies the version of operating system graphics that was used to create this metafile.

public EmfPlusGraphicsVersion Version { get; set; }

Property Value

EmfPlusGraphicsVersion

VideoDisplay

Gets or sets a value indicating whether video display. if set, this flag indicates that the metafile was recorded with a reference device context for a video display. If clear, the metafile was recorded with a reference device context for a printer.

public bool VideoDisplay { get; set; }

Property Value

bool