EmfRestoreDc
Inheritance: java.lang.Object, com.aspose.imaging.fileformats.emf.MetaObject, com.aspose.imaging.fileformats.emf.emf.records.EmfRecord, com.aspose.imaging.fileformats.emf.emf.records.EmfStateRecordType
public final class EmfRestoreDc extends EmfStateRecordType
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).
The stack can contain state information for multiple instances of the playback device context. When a state is restored, all state instances that were saved more recently MUST be discarded.
Constructors
| Constructor | Description |
|---|---|
| EmfRestoreDc(EmfRecord source) | Initializes a new instance of the EmfRestoreDc class. |
| EmfRestoreDc() | Initializes a new instance of the EmfRestoreDc class. |
Methods
| Method | Description |
|---|---|
| getSavedDc() | Gets or sets a 32-bit signed integer that specifies the saved state to restore relative to the current state. |
| setSavedDc(int value) | Gets or sets a 32-bit signed integer that specifies the saved state to restore relative to the current state. |
EmfRestoreDc(EmfRecord source)
public EmfRestoreDc(EmfRecord source)
Initializes a new instance of the EmfRestoreDc class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| source | EmfRecord | The source. |
EmfRestoreDc()
public EmfRestoreDc()
Initializes a new instance of the EmfRestoreDc class.
getSavedDc()
public int getSavedDc()
Gets or sets a 32-bit signed integer that specifies the saved state to restore relative to the current state. This value MUST be negative; \u20131 represents the state that was most recently saved on the stack, \u20132 the one before that, etc.
Returns: int
setSavedDc(int value)
public void setSavedDc(int value)
Gets or sets a 32-bit signed integer that specifies the saved state to restore relative to the current state. This value MUST be negative; \u20131 represents the state that was most recently saved on the stack, \u20132 the one before that, etc.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int |