DicomObjects.NET.V8
DicomObjects Namespace / DicomImage Class / PresentationStateToCurrent Method / PresentationStateToCurrent(DicomViewer) Method
The viewer the image is displayed in



In This Topic
    PresentationStateToCurrent(DicomViewer) Method
    In This Topic
    Modifies current display properties to match the DICOM presentation state.
    Syntax
    'Declaration
     
    Public Overloads Sub PresentationStateToCurrent( _
       ByVal Viewer As DicomViewer _
    ) 
    'Usage
     
    Dim instance As DicomImage
    Dim Viewer As DicomViewer
     
    instance.PresentationStateToCurrent(Viewer)
    public void PresentationStateToCurrent( 
       DicomViewer Viewer
    )
    public:
    void PresentationStateToCurrent( 
       DicomViewer^ Viewer
    ) 

    Parameters

    Viewer
    The viewer the image is displayed in
    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 viewer is used to determine the scroll values. For finer control of which properties are modified, consider one of the overrides which take a DicomObjects.Enums.PresentationStateFeatures parameter.
    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also