DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / PresentationStateToCurrent Method / PresentationStateToCurrent(Matrix,PresentationStateFeatures) Method
A matrix defining how the image is to be displayed.
Controls which properties are updated from the presentation state.






In This Topic
    PresentationStateToCurrent(Matrix,PresentationStateFeatures) Method
    In This Topic
    Modifies current display properties to match the DICOM presentation state.
    Syntax
    'Declaration
     
    
    Public Overloads Sub PresentationStateToCurrent( _
       ByVal Matrix As System.Drawing.Drawing2D.Matrix, _
       ByVal Features As PresentationStateFeatures _
    ) 
    'Usage
     
    
    Dim instance As DicomImage
    Dim Matrix As System.Drawing.Drawing2D.Matrix
    Dim Features As PresentationStateFeatures
     
    instance.PresentationStateToCurrent(Matrix, Features)
    public void PresentationStateToCurrent( 
       System.Drawing.Drawing2D.Matrix Matrix,
       PresentationStateFeatures Features
    )
    public procedure PresentationStateToCurrent( 
        Matrix: System.Drawing.Drawing2D.Matrix;
        Features: PresentationStateFeatures
    ); 
    public function PresentationStateToCurrent( 
       Matrix : System.Drawing.Drawing2D.Matrix,
       Features : PresentationStateFeatures
    );
    public: void PresentationStateToCurrent( 
       System.Drawing.Drawing2D.Matrix* Matrix,
       PresentationStateFeatures Features
    ) 
    public:
    void PresentationStateToCurrent( 
       System.Drawing.Drawing2D.Matrix^ Matrix,
       PresentationStateFeatures Features
    ) 

    Parameters

    Matrix
    A matrix defining how the image is to be displayed.
    Features
    Controls which properties are updated from the presentation state.
    Remarks

    This is essentially the reverse of CurrentToPresentationState. DicomObjects. properties such as Scroll, Zoom and Labels are set to reflect as accurately as possible the data in the current PresentationState property. If private attributes have been added by CurrentToPresentationState, then they are utilized in this method.

    The Matrix is used to determine the scroll values.

    Properties which are not updated from the presentation state continue to use the presentation state itself, as the PresentationStateFeaturesUsed property is updated to unset only the bits in the Features parameter

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also