DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImageCurvedMPR Class / CurrentPixelScale Method
Size of current display area
Example

In This Topic
    CurrentPixelScale Method (DicomImageCurvedMPR)
    In This Topic
    Current Pixel Size
    Syntax
    'Declaration
     
    
    Public Function CurrentPixelScale( _
       ByVal DisplaySize As System.Drawing.Size _
    ) As System.Drawing.SizeF
    public System.Drawing.SizeF CurrentPixelScale( 
       System.Drawing.Size DisplaySize
    )

    Parameters

    DisplaySize
    Size of current display area

    Return Value

    Size per pixel in mm (X and Y may differ)
    Remarks
    The DicomImage.DisplaySize method may be used to obtain the correct value of DisplaySize
    Example
    DicomImage image = new DicomImage("your_3D_dicom_image.dcm);
    DicomVolume volume = new DicomVolume(image);
    DicomImageCurvedMPR curvedMPR = new DicomImageCurvedMPR(volume);       
                        
    Size displaySize = new Size(curvedMPR.Size.Width, curvedMPR.Size.Height);
    SizeF pixelScale = curvedMPR.CurrentPixelScale(displaySize);
    Viewer.Images.Add(curvedMPR);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also