DicomObjects.NET.V8
DicomObjects Namespace / DicomImage Class / WorldToImage(Point3D,DicomViewer,Int32) Method
The point in real world coordinates
The Viewer being used for display
The frame to apply this calculation to



In This Topic
    WorldToImage(Point3D,DicomViewer,Int32) Method
    In This Topic
    Calculate the nearest image coordinates for a point in real world (X,Y,Z) space,
    Syntax
    'Declaration
     
    Public Function WorldToImage( _
       ByVal WorldLocation As Point3D, _
       ByVal Viewer As DicomViewer, _
       ByVal Frame As Integer _
    ) As PointF
    'Usage
     
    Dim instance As DicomImage
    Dim WorldLocation As Point3D
    Dim Viewer As DicomViewer
    Dim Frame As Integer
    Dim value As PointF
     
    value = instance.WorldToImage(WorldLocation, Viewer, Frame)
    public PointF WorldToImage( 
       Point3D WorldLocation,
       DicomViewer Viewer,
       int Frame
    )
    public:
    PointF WorldToImage( 
       Point3D WorldLocation,
       DicomViewer^ Viewer,
       int Frame
    ) 

    Parameters

    WorldLocation
    The point in real world coordinates
    Viewer
    The Viewer being used for display
    Frame
    The frame to apply this calculation to

    Return Value

    Image coordinates of the closest point of the image plane
    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also