DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage Class / ScreenToImage Method
The point on the output space
The Viewer being used for display






In This Topic
    ScreenToImage Method (DicomImage)
    In This Topic
    Calculate where in image (X,Y) space, a given screen point lies
    Syntax
    'Declaration
     
    
    Public Overridable Function ScreenToImage( _
       ByVal ScreenLocation As System.Drawing.PointF, _
       ByVal Viewer As DicomViewer _
    ) As System.Nullable(Of PointF)
    'Usage
     
    
    Dim instance As DicomImage
    Dim ScreenLocation As System.Drawing.PointF
    Dim Viewer As DicomViewer
    Dim value As System.Nullable(Of PointF)
     
    value = instance.ScreenToImage(ScreenLocation, Viewer)
    public virtual System.Nullable<PointF> ScreenToImage( 
       System.Drawing.PointF ScreenLocation,
       DicomViewer Viewer
    )
    public function ScreenToImage( 
        ScreenLocation: System.Drawing.PointF;
        Viewer: DicomViewer
    ): System.Nullable; virtual; 
    public function ScreenToImage( 
       ScreenLocation : System.Drawing.PointF,
       Viewer : DicomViewer
    ) : System.Nullable;
    public: virtual System.Nullable<PointF> ScreenToImage( 
       System.Drawing.PointF ScreenLocation,
       DicomViewer* Viewer
    ) 
    public:
    virtual System.Nullable<PointF> ScreenToImage( 
       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 2D space if appropriate, or null, for 3D images
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also