DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / ScreenToWorld(PointF,DicomViewer) Method
The point on the output space
The Viewer being used for display






In This Topic
    ScreenToWorld(PointF,DicomViewer) Method
    In This Topic
    Calculate where in real world (X,Y,Z) space, a given screen point lies
    Syntax
    'Declaration
     
    
    Public Function ScreenToWorld( _
       ByVal ScreenLocation As System.Drawing.PointF, _
       ByVal Viewer As DicomViewer _
    ) As System.Nullable(Of Point3D)
    'Usage
     
    
    Dim instance As DicomImage
    Dim ScreenLocation As System.Drawing.PointF
    Dim Viewer As DicomViewer
    Dim value As System.Nullable(Of Point3D)
     
    value = instance.ScreenToWorld(ScreenLocation, Viewer)
    public System.Nullable<Point3D> ScreenToWorld( 
       System.Drawing.PointF ScreenLocation,
       DicomViewer Viewer
    )
    public function ScreenToWorld( 
        ScreenLocation: System.Drawing.PointF;
        Viewer: DicomViewer
    ): System.Nullable; 
    public function ScreenToWorld( 
       ScreenLocation : System.Drawing.PointF,
       Viewer : DicomViewer
    ) : System.Nullable;
    public: System.Nullable<Point3D> ScreenToWorld( 
       System.Drawing.PointF ScreenLocation,
       DicomViewer* Viewer
    ) 
    public:
    System.Nullable<Point3D> ScreenToWorld( 
       System.Drawing.PointF ScreenLocation,
       DicomViewer^ Viewer
    ) 

    Parameters

    ScreenLocation
    The point on the output space
    Viewer
    The Viewer being used for display

    Return Value

    Point in 3D space if appropriate, or null, if the necessary coordinate information is not available
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also