EmfRestoreDc Class

Summary: The EMR_RESTOREDC record restores the playback device context to the specified state. The
playback device context is restored by popping state information off a stack that was created by
prior EMR_SAVEDC records (section 2.3.11).

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

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

Inheritance: EmfStateRecordType

Aspose.Imaging Version: 24.6.0

Constructors

NameDescription
EmfRestoreDc()Initializes a new instance of the EmfRestoreDc class.
EmfRestoreDc(source)Initializes a new instance of the EmfRestoreDc class.

Properties

NameTypeAccessDescription
saved_dcintr/wGets or sets a 32-bit signed integer that specifies the saved state to restore relative to
the current state. This value MUST be negative; –1 represents the state that was most
recently saved on the stack, –2 the one before that, etc.
sizeintr/wGets or sets the size of the record
typeEmfRecordTyper/wGets or sets the type.

Methods

NameDescription
create_from_record(source)Initializes a new instance of the EmfRecord class.
create_from_type(type)Initializes a new instance of the EmfRecord class.

Constructor: EmfRestoreDc()

 EmfRestoreDc() 

Initializes a new instance of the EmfRestoreDc class.

Constructor: EmfRestoreDc(source)

 EmfRestoreDc(source) 

Initializes a new instance of the EmfRestoreDc class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

Method: create_from_record(source) [static]

 create_from_record(source) 

Initializes a new instance of the EmfRecord class.

Parameters:

ParameterTypeDescription
sourceEmfRecordThe source.

Returns

TypeDescription
EmfRecord

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