Packages

 

com.aspose.imaging.fileformats.emf.emf.records

Classes

com.aspose.imaging.fileformats.emf.emf.records

Class EmfRestoreDc

  • All Implemented Interfaces:
    com.aspose.imaging_internal.fileformats.emf.IRecord, Cloneable


    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.

    • Constructor Detail

      • EmfRestoreDc

        public EmfRestoreDc(EmfRecord source)

        Initializes a new instance of the EmfRestoreDc class.

        Parameters:
        source - The source.
      • EmfRestoreDc

        public EmfRestoreDc()

        Initializes a new instance of the EmfRestoreDc class.

    • Method Detail

      • 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; –1 represents the state that was most recently saved on the stack, –2 the one before that, etc.

      • setSavedDc

        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; –1 represents the state that was most recently saved on the stack, –2 the one before that, etc.