Click or drag to resize

MouseToolGetImagePosition Method (Point, Boolean)

Returns the image position from a point in viewer coordinates.

Namespace:  Atalasoft.Imaging.Wpf
Assembly:  Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
protected Point GetImagePosition(
	Point controlPoint,
	bool confineToImage
)

Parameters

controlPoint
Type: System.WindowsPoint
The viewer point to convert.
confineToImage
Type: SystemBoolean
Indicates whether the point should be confined to the image area. Setting this to false will allow positions outside of the image to be returned.

Return Value

Type: Point
The converted position in image coordinates.
See Also