EmfMetafileHeaderExtension2 Class

Summary: The EmfMetafileHeaderExtension2 record is the header record used in the second extension to EMF
metafiles. Following the EmfHeaderExtension2 field, the remaining fields are optional and
can be present in any order.

Module: aspose.imaging.fileformats.emf.emf.records

Full Name: aspose.imaging.fileformats.emf.emf.records.EmfMetafileHeaderExtension2

Inheritance: EmfMetafileHeaderExtension1

Aspose.Imaging Version: 24.6.0

Constructors

NameDescription
EmfMetafileHeaderExtension2(header)Initializes a new instance of the EmfMetafileHeaderExtension2 class.
EmfMetafileHeaderExtension2(header)Initializes a new instance of the EmfMetafileHeaderExtension2 class.

Properties

NameTypeAccessDescription
emf_descriptionstringr/wGets or sets the EMF description
An optional, null-terminated Unicode UTF16-LE string of arbitrary length and content.
Its location in the record and number of characters are specified by the offDescription
and nDescription fields, respectively, in EmfHeader. If the value of either field
is zero, no description string is present.
emf_description_bufferbyter/wGets or sets the EMF description buffer
An optional array of bytes that contains the EMF description string, which is
not required to be contiguous with the fixed portion of the EmfMetafileHeader
record. Accordingly, the field in this buffer that is labeled “UndefinedSpace”
is optional and MUST be ignored.
emf_headerEmfHeaderObjectr/wGets or sets a Header object (section 2.2.9), which contains information about the content
and structure of the metafile
emf_header_extension1EmfHeaderExtension1r/wGets or sets a HeaderExtension1 object, which specifies additional information about the image in the metafile.
emf_header_extension2EmfHeaderExtension2r/wGets or sets a HeaderExtension2 object, which specifies additional information about the image in the metafile
emf_header_record_bufferbyter/wGets or sets an optional array of bytes that contains the remainder of the EMF header record.
The size of this field MUST be a multiple of 4 bytes
emf_pixel_format_bufferbyter/wGets or sets an optional array of bytes that contains the EMF pixel format descriptor, which is not required to
be contiguous with the fixed portion of the EmfMetafileHeaderExtension1 record or with the EMF
description string. Accordingly, the field in this buffer that is labeled “UndefinedSpace” is
optional and MUST be ignored
sizeintr/wGets or sets the size of the record
typeEmfRecordTyper/wGets or sets the type.

Methods

NameDescription
create_from_header(header)Initializes a new instance of the EmfMetafileHeaderExtension2 class.
create_from_header_extension1(header)Initializes a new instance of the EmfMetafileHeaderExtension2 class.
create_from_header_extension2(header)Initializes a new instance of the EmfMetafileHeaderExtension2 class.
create_from_record(record)Initializes a new instance of the EmfMetafileHeader class.
create_from_type(type)Initializes a new instance of the EmfRecord class.

Constructor: EmfMetafileHeaderExtension2(header)

 EmfMetafileHeaderExtension2(header) 

Initializes a new instance of the EmfMetafileHeaderExtension2 class.

Parameters:

ParameterTypeDescription
headerEmfMetafileHeaderExtension1The header.

Constructor: EmfMetafileHeaderExtension2(header)

 EmfMetafileHeaderExtension2(header) 

Initializes a new instance of the EmfMetafileHeaderExtension2 class.

Parameters:

ParameterTypeDescription
headerEmfMetafileHeaderExtension2The header.

Method: create_from_header(header) [static]

 create_from_header(header) 

Initializes a new instance of the EmfMetafileHeaderExtension2 class.

Parameters:

ParameterTypeDescription
headerEmfMetafileHeaderThe header.

Returns

TypeDescription
EmfMetafileHeaderExtension1

Method: create_from_header_extension1(header) [static]

 create_from_header_extension1(header) 

Initializes a new instance of the EmfMetafileHeaderExtension2 class.

Parameters:

ParameterTypeDescription
headerEmfMetafileHeaderExtension1The header.

Returns

TypeDescription
EmfMetafileHeaderExtension2

Method: create_from_header_extension2(header) [static]

 create_from_header_extension2(header) 

Initializes a new instance of the EmfMetafileHeaderExtension2 class.

Parameters:

ParameterTypeDescription
headerEmfMetafileHeaderExtension2The header.

Returns

TypeDescription
EmfMetafileHeaderExtension2

Method: create_from_record(record) [static]

 create_from_record(record) 

Initializes a new instance of the EmfMetafileHeader class.

Parameters:

ParameterTypeDescription
recordEmfRecordThe record.

Returns

TypeDescription
EmfMetafileHeader

Method: create_from_type(type) [static]

 create_from_type(type) 

Initializes a new instance of the EmfRecord class.

Parameters:

ParameterTypeDescription
typeEmfRecordTypeThe record type.

Returns

TypeDescription
EmfRecord