DicomObjects.NET10 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 Single _
    ) 
    'Usage
     
    
    Dim instance As DicomImageFusion
    Dim Scale As Single
     
    instance.Scale(Scale)
    public void Scale( 
       float Scale
    )
    public:
    void Scale( 
       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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also