DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / Spacing Method / Spacing(Rectangle) Method
The Area for which the spacing should be calculated






    Spacing(Rectangle) Method
    This method returns the Pixel Spacing within the region specified by Area
    Syntax
    'Declaration
     
    
    Public Overloads Function Spacing( _
       ByVal Area As System.Drawing.Rectangle _
    ) As System.Drawing.SizeF
     
    'Usage
     
    
    Dim instance As DicomImage
    Dim Area As System.Drawing.Rectangle
    Dim value As System.Drawing.SizeF
     
    value = instance.Spacing(Area)

    Parameters

    Area
    The Area for which the spacing should be calculated

    Return Value

    The pixel spacing of the requested area
    Remarks
    This method returns the Pixel Spacing within a Region of the DicomImage. Note, one Image may have multiple regions with different pixel spacing values, so this method may return different values for different inputs.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also