VintaSoft Imaging .NET SDK 15.2: Documentation for .NET developer
Vintasoft.Imaging.Wpf.UI Namespace / WpfImageViewer Class / PointFromControlToImage(Point) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
PointFromControlToImage(Point) Method (WpfImageViewer)
In This Topic
Computes the location of the specified control's point into image coordinates.
Syntax
'Declaration

Public Function PointFromControlToImage( _
ByVal controlPoint
The ImageViewer's coordinate System.Drawing.PointF to convert.
As System.Windows.Point _
) As System.Windows.Point
public System.Windows.Point PointFromControlToImage(
System.Windows.Point controlPoint
)

Parameters

controlPoint
The ImageViewer's coordinate System.Drawing.PointF to convert.

Return Value

A PointF that represents the converted PointF, clientPoint, in image coordinates.
Exceptions
ExceptionDescription
Thrown if viewer does not have image.
Requirements

Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also