Click or drag to resize

MouseToolGetImagePosition Method (MouseEventArgs, Boolean)

Returns the image position from a MouseEventArgs.

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(
	MouseEventArgs e,
	bool confineToImage
)

Parameters

e
Type: System.Windows.InputMouseEventArgs
The MouseEventArgs from a mouse event.
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