Click or drag to resize

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

Creates a new instance of ZoomMouseTool specifying all of its property values.

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 leftButtonTool,
	ZoomToolMode middleButtonTool,
	ZoomToolMode rightButtonTool,
	ZoomToolMode xButton1Tool,
	ZoomToolMode xButton2Tool
)

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.
leftButtonTool
Type: Atalasoft.Imaging.WpfZoomToolMode
The tool used when the left mouse button is clicked.
middleButtonTool
Type: Atalasoft.Imaging.WpfZoomToolMode
The tool used when the middle mouse button is clicked.
rightButtonTool
Type: Atalasoft.Imaging.WpfZoomToolMode
The tool used when the right mouse button is clicked.
xButton1Tool
Type: Atalasoft.Imaging.WpfZoomToolMode
The tool used when the XButton1 is clicked.
xButton2Tool
Type: Atalasoft.Imaging.WpfZoomToolMode
The tool used when the XButton2 is clicked.
See Also