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 As System.Drawing.PointF, _
ByVal 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 ,
System.Drawing.Size
)
public function PixelToWorld(
: System.Drawing.PointF;
: System.Drawing.Size
): System.Windows.Media.Media3D.Point3D;
public function PixelToWorld(
: System.Drawing.PointF,
: System.Drawing.Size
) : System.Windows.Media.Media3D.Point3D;
public: System.Windows.Media.Media3D.Point3D PixelToWorld(
System.Drawing.PointF ,
System.Drawing.Size
)
public:
System.Windows.Media.Media3D.Point3D PixelToWorld(
System.Drawing.PointF ,
System.Drawing.Size
)
Parameters
- Point
- DisplaySize
Requirements
Target Platforms: .NET CLR 4.8 or higher
See Also