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






In This Topic
    Spacing(Rectangle) Method
    In This Topic
    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)
    public System.Drawing.SizeF Spacing( 
       System.Drawing.Rectangle Area
    )
    public function Spacing( 
        Area: System.Drawing.Rectangle
    ): System.Drawing.SizeF; 
    public function Spacing( 
       Area : System.Drawing.Rectangle
    ) : System.Drawing.SizeF;
    public: System.Drawing.SizeF Spacing( 
       System.Drawing.Rectangle Area
    ) 
    public:
    System.Drawing.SizeF Spacing( 
       System.Drawing.Rectangle 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