DicomObjects.NET.8.48 Documentation
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 System.Drawing.PointF, _
       Optional ByVal Viewer As DicomViewer _
    ) As System.Nullable(Of Point3D)
    'Usage
     
    
    Dim instance As DicomImage
    Dim ImageLocation As System.Drawing.PointF
    Dim Viewer As DicomViewer
    Dim value As System.Nullable(Of Point3D)
     
    value = instance.ImageToWorld(ImageLocation, Viewer)
    public virtual System.Nullable<Point3D> ImageToWorld( 
       System.Drawing.PointF ImageLocation,
       DicomViewer Viewer
    )
    public function ImageToWorld( 
        ImageLocation: System.Drawing.PointF;
        Viewer: DicomViewer
    ): System.Nullable; virtual; 
    public function ImageToWorld( 
       ImageLocation : System.Drawing.PointF,
       Viewer : DicomViewer
    ) : System.Nullable;
    public: virtual System.Nullable<Point3D> ImageToWorld( 
       System.Drawing.PointF ImageLocation,
       DicomViewer* Viewer
    ) 
    public:
    virtual System.Nullable<Point3D> ImageToWorld( 
       System.Drawing.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.8 or higher

    See Also