DicomObjects.NET.V8
DicomObjects Namespace / DicomImage Class / SpacingInViewer Method
The Area for which the spacing should be calculated
The viewer for which the spacing applies



In This Topic
    SpacingInViewer Method
    In This Topic
    This method returns the Pixel Spacing within the region specified by Area, in a particular viewer
    Syntax
    'Declaration
     
    Public Overridable Function SpacingInViewer( _
       ByVal Area As Rectangle, _
       ByVal Viewer As DicomViewer _
    ) As SizeF
    'Usage
     
    Dim instance As DicomImage
    Dim Area As Rectangle
    Dim Viewer As DicomViewer
    Dim value As SizeF
     
    value = instance.SpacingInViewer(Area, Viewer)
    public virtual SizeF SpacingInViewer( 
       Rectangle Area,
       DicomViewer Viewer
    )
    public:
    virtual SizeF SpacingInViewer( 
       Rectangle Area,
       DicomViewer^ Viewer
    ) 

    Parameters

    Area
    The Area for which the spacing should be calculated
    Viewer
    The viewer for which the spacing applies

    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.

    Note that for non-3D images, this returns exactly the same value as Spacing(Rectangle), but that 3D images have scaling dependent on the viewer size, as autoscaling is used for such images.

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also