MouseToolGetImagePosition Method (MouseButtonEventArgs, Boolean) |
Returns the image position from a MouseButtonEventArgs.
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(
MouseButtonEventArgs e,
bool confineToImage
)
Protected Function GetImagePosition (
e As MouseButtonEventArgs,
confineToImage As Boolean
) As Point
Parameters
- e
- Type: System.Windows.InputMouseButtonEventArgs
The MouseButtonEventArgs 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