EmfRestoreDc 类
内容
[
隐藏
]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
Constructors
| Name | 描述 |
|---|---|
| EmfRestoreDc() | 初始化一个新的 EmfRestoreDc 类的实例。 |
| EmfRestoreDc(source) | 初始化一个新的 EmfRestoreDc 类的实例。 |
Properties
| Name | Type | Access | 描述 |
|---|---|---|---|
| saved_dc | int | r/w | 获取或设置一个 32 位有符号整数,指定相对于当前状态要恢复的已保存状态。 此值必须为负数;–1 表示最近一次压栈保存的状态,–2 表示其之前的状态,依此类推。 |
| size | int | r/w | 获取或设置记录的大小 |
| type | EmfRecordType | r/w | 获取或设置类型。 |
Methods
| Name | 描述 |
|---|---|
| create_from_record(source) | 初始化 EmfRecord 类的新实例。 |
| create_from_type(type) | 初始化 EmfRecord 类的新实例。 |
Constructor: EmfRestoreDc()
EmfRestoreDc()
初始化一个新的 EmfRestoreDc 类的实例。
Constructor: EmfRestoreDc(source)
EmfRestoreDc(source)
初始化一个新的 EmfRestoreDc 类的实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| source | EmfRecord | 来源。 |
Method: create_from_record(source) [static]
create_from_record(source)
初始化 EmfRecord 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| source | EmfRecord | 来源。 |
Returns
| Type | Description |
|---|---|
| EmfRecord |
Method: create_from_type(type) [static]
create_from_type(type)
初始化 EmfRecord 类的新实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| type | EmfRecordType | 记录类型。 |
Returns
| Type | Description |
|---|---|
| EmfRecord |