Click or drag to resize

ZoomMouseTool Constructor (Double, Boolean, Double, Double, Boolean, MouseToolBehavior, Pen, Color, Brush, Boolean, ZoomToolMode)

Creates a new instance of ZoomMouseTool specifying the pen, tool behavior, zoom level parameters and tool used for all buttons.

Namespace:  Atalasoft.Imaging.Wpf
Assembly:  Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public ZoomMouseTool(
	double zoomChangePercentage,
	bool centerZoom,
	double minimumZoomLevel,
	double maximumZoomLevel,
	bool autoZoomSelection,
	MouseToolBehavior toolBehavior,
	Pen pen,
	Color lineBackgroundColor,
	Brush fill,
	bool maintainPenThickness,
	ZoomToolMode toolForAllButtons
)

Parameters

zoomChangePercentage
Type: SystemDouble
The percentage the zoom will change each time to tool is applied. This has no effect when ZoomSelection is used.
centerZoom
Type: SystemBoolean
Indicates whether the pixel clicked will be centered in the viewer.
minimumZoomLevel
Type: SystemDouble
Specifies the minimum zoom level allowed.
maximumZoomLevel
Type: SystemDouble
Specifies the maximum zoom level allowed.
autoZoomSelection
Type: SystemBoolean
If true, the tool will automatically switch to ZoomSelection mode if the user clicks and drags the mouse. Clicks without moving the mouse will use the tool specified for the mouse button.
toolBehavior
Type: Atalasoft.Imaging.WpfMouseToolBehavior
Indicates if the ZoomSelection will use the click and drag or two click method.
pen
Type: System.Windows.MediaPen
The pen to use for the selection. If null (Nothing in VB), a default pen will be used.
lineBackgroundColor
Type: System.Windows.MediaColor
The color used behind the selection line.
fill
Type: System.Windows.MediaBrush
The brush used to fill the selection.
maintainPenThickness
Type: SystemBoolean
Indicates if the pen thickness will render the same size regardless of the zoom level.
toolForAllButtons
Type: Atalasoft.Imaging.WpfZoomToolMode
The tool to use for any mouse button.
See Also