DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage3D Class / Scale Method
The factor to scale the image view by
Example

In This Topic
    Scale Method (DicomImage3D)
    In This Topic
    Scale/Zoom the view
    Syntax
    'Declaration
     
    
    Public Sub Scale( _
       ByVal Scale As System.Single _
    ) 
    public void Scale( 
       System.float Scale
    )

    Parameters

    Scale
    The factor to scale the image view by
    Example
    DicomImage image = new DicomImage("your_3D_dicom_image.dcm");
    DicomVolume volume = new DicomVolume(image);
                        
    RenderMode3D renderMode = RenderMode3D.MPR;
    DicomImage3D image3D = new DicomImage3D(volume, renderMode);
                        
    float scale = 1.5f;
    image3D.Scale(scale);
    Viewer.Images.Add(image3D);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also