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






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

    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