DicomObjects.NET10 Documentation
DicomObjects Namespace / DicomImage Class / ImageToWorld(SKPoint,DicomViewer) Method
location being calculated in image pixel coordinates
The Viewer being used for display



In This Topic
    ImageToWorld(SKPoint,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 SkiaSharp.SKPoint, _
       Optional ByVal Viewer As DicomViewer _
    ) As Nullable(Of SKPoint3)
    'Usage
     
    
    Dim instance As DicomImage
    Dim ImageLocation As SkiaSharp.SKPoint
    Dim Viewer As DicomViewer
    Dim value As Nullable(Of SKPoint3)
     
    value = instance.ImageToWorld(ImageLocation, Viewer)
    public virtual Nullable<SKPoint3> ImageToWorld( 
       SkiaSharp.SKPoint ImageLocation,
       DicomViewer Viewer
    )
    public:
    virtual Nullable<SKPoint3> ImageToWorld( 
       SkiaSharp.SKPoint 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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also