DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomViewer Class / ImagePosition Method
Point as Point






In This Topic
    ImagePosition Method
    In This Topic
    Returns the Image coordinates conversion of the user provided Point
    Syntax
    'Declaration
     
    
    Public Function ImagePosition( _
       ByVal Point As System.Drawing.Point _
    ) As System.Drawing.PointF
    'Usage
     
    
    Dim instance As DicomViewer
    Dim Point As System.Drawing.Point
    Dim value As System.Drawing.PointF
     
    value = instance.ImagePosition(Point)
    public System.Drawing.PointF ImagePosition( 
       System.Drawing.Point Point
    )
    public function ImagePosition( 
        Point: System.Drawing.Point
    ): System.Drawing.PointF; 
    public function ImagePosition( 
       Point : System.Drawing.Point
    ) : System.Drawing.PointF;
    public: System.Drawing.PointF ImagePosition( 
       System.Drawing.Point Point
    ) 
    public:
    System.Drawing.PointF ImagePosition( 
       System.Drawing.Point Point
    ) 

    Parameters

    Point
    Point as Point

    Return Value

    PointF
    Remarks
    This method takes a Point (normally a mouse click on the DicomViewer) and returns it's Image Cell coordinate conversion in PointF format, if no image selected then it returns (0.0, 0.0).
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also