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

In This Topic
    Scale Method (DicomImageFusion)
    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
    Remarks
    For a DicomImageFusion object, this passes the transformation on to all images in the collection which support IProjection
    Example
    DicomImage image = new DicomImage("your_3D_dicom_image.dcm);
    DicomVolume volume = new DicomVolume(image);
    DicomImage3D image3D = new DicomImage3D(volume, RenderMode3D.MPR);
    DicomImageCollection collection3D = new DicomImageCollection()
    {
        image3D
    }
    DicomImageFusion fusedImage = new DicomImageFusion(collection3D);
                        
    float scale = 1.5f;
    fusedImage.Scale(scale);
    Viewer.Images.Add(fusedImage);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also