DicomObjects.NET.V8
DicomObjects Namespace / DicomImage Class / SetScrollAndZoom Method
The viewer that the image is displayed in



In This Topic
    SetScrollAndZoom Method
    In This Topic
    Sets the Scroll and Zoom values to values reflecting the current display
    Syntax
    'Declaration
     
    Public Sub SetScrollAndZoom( _
       ByVal Viewer As DicomViewer _
    ) 
    'Usage
     
    Dim instance As DicomImage
    Dim Viewer As DicomViewer
     
    instance.SetScrollAndZoom(Viewer)
    public void SetScrollAndZoom( 
       DicomViewer Viewer
    )
    public:
    void SetScrollAndZoom( 
       DicomViewer^ Viewer
    ) 

    Parameters

    Viewer
    The viewer that the image is displayed in
    Remarks
    The viewer used as a reference, and the current zoom and scroll values as used in that viewer are calculated. This is useful when the existing StretchMode is a dynamic mode such as DicomObjects.Enums.StretchModes.StretchCentred. After the calulations have been performed, the StretchMode is set to DicomObjects.Enums.StretchModes.NoStretch
    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also