public class MfCmdRestoreDc extends MfCmd
BOOL RestoreDC( HDC hdc, // handle to DC int nSavedDC // restore state );
Parameters nSavedDC [in] Specifies the saved state to be restored. If this parameter is positive, nSavedDC represents
a specific instance of the state to be restored. If this parameter is negative, nSavedDC represents an instance
relative to the current state. For example, 0x01 restores the most recently saved state.Constructor and Description |
---|
MfCmdRestoreDc() |
Modifier and Type | Method and Description |
---|---|
int |
getFunction()
Reads the function identifier.
|
MfCmd |
getInstance()
Creates a empty unintialized copy of this command implementation.
|
int |
getNSavedDC() |
MfRecord |
getRecord()
Creates a new record based on the data stored in the MfCommand.
|
void |
replay(WmfFile file)
Replays the command on the given WmfFile.
|
void |
setNSavedDC(int id) |
void |
setRecord(MfRecord record)
Reads the command data from the given record and adjusts the internal parameters according to the data parsed.
|
String |
toString() |
getScaledX, getScaledY, setScale
public void replay(WmfFile file)
public MfCmd getInstance()
getInstance
in class MfCmd
public void setRecord(MfRecord record)
public MfRecord getRecord() throws RecordCreationException
getRecord
in class MfCmd
RecordCreationException
- if an error occured while generating the record.public int getFunction()
getFunction
in class MfCmd
public int getNSavedDC()
public void setNSavedDC(int id)