DicomObjects.NET.V8
DicomObjects Namespace / DicomImage Class / ImageToWorld(PointF,DicomViewer) Method
location being calculated in image pixel coordinates
The Viewer being used for display



In This Topic
    ImageToWorld(PointF,DicomViewer) Method
    In This Topic
    Calculate the real-world 3D coordinates of a point of the image currently displayed
    Syntax
    'Declaration
     
    Public Overridable Function ImageToWorld( _
       ByVal ImageLocation As PointF, _
       Optional ByVal Viewer As DicomViewer _
    ) As Nullable(Of Point3D)
    'Usage
     
    Dim instance As DicomImage
    Dim ImageLocation As PointF
    Dim Viewer As DicomViewer
    Dim value As Nullable(Of Point3D)
     
    value = instance.ImageToWorld(ImageLocation, Viewer)
    public virtual Nullable<Point3D> ImageToWorld( 
       PointF ImageLocation,
       DicomViewer Viewer
    )
    public:
    virtual Nullable<Point3D> ImageToWorld( 
       PointF ImageLocation,
       DicomViewer^ Viewer
    ) 

    Parameters

    ImageLocation
    location being calculated in image pixel coordinates
    Viewer
    The Viewer being used for display

    Return Value

    Note the use of image pixel coordinates, so you may wish to use DicomViewer.ImagePosition first.
    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also