DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Spacing Method / Spacing() Method
Example

In This Topic
    Spacing() Method
    In This Topic
    The pixel spacing of the DicomImage
    Syntax
    'Declaration
     
    
    Public Overloads Function Spacing() As System.Drawing.SizeF
    public System.Drawing.SizeF Spacing()

    Return Value

    The pixel spacing of the image
    Remarks
    The pixel size in mm.
    Example
    DicomImage image = new DicomImage("your_dicom_image.dcm");
    var spaceSize = image.Spacing(); // Example value: {Width = 0.684 Height = 0.684} mm
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also