DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomImage3D Class / PixelToWorld Method






In This Topic
    PixelToWorld Method (DicomImage3D)
    In This Topic
    Calculate the real world location of a point displayed on a 3D image
    Syntax
    'Declaration
     
    
    Public Function PixelToWorld( _
       ByVal Point As System.Drawing.PointF, _
       ByVal DisplaySize As System.Drawing.Size _
    ) As System.Windows.Media.Media3D.Point3D
    'Usage
     
    
    Dim instance As DicomImage3D
    Dim Point As System.Drawing.PointF
    Dim DisplaySize As System.Drawing.Size
    Dim value As System.Windows.Media.Media3D.Point3D
     
    value = instance.PixelToWorld(Point, DisplaySize)
    public System.Windows.Media.Media3D.Point3D PixelToWorld( 
       System.Drawing.PointF Point,
       System.Drawing.Size DisplaySize
    )
    public function PixelToWorld( 
        Point: System.Drawing.PointF;
        DisplaySize: System.Drawing.Size
    ): System.Windows.Media.Media3D.Point3D; 
    public function PixelToWorld( 
       Point : System.Drawing.PointF,
       DisplaySize : System.Drawing.Size
    ) : System.Windows.Media.Media3D.Point3D;
    public: System.Windows.Media.Media3D.Point3D PixelToWorld( 
       System.Drawing.PointF Point,
       System.Drawing.Size DisplaySize
    ) 
    public:
    System.Windows.Media.Media3D.Point3D PixelToWorld( 
       System.Drawing.PointF Point,
       System.Drawing.Size DisplaySize
    ) 

    Parameters

    Point
    DisplaySize
    Remarks

    This method is suitable for MPR and Slab images, and whilst it will provide a value for "projectional" MIP and VR images the point will be on the "central plane" of that view, and is not really localised to a single point in space.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also