Click or drag to resize

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

Creates a new instance of ZoomMouseTool specifying the pen, fill and common properties.

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,
	bool autoZoomSelection,
	MouseToolBehavior toolBehavior,
	Pen pen,
	Color lineBackgroundColor,
	Brush fill,
	bool maintainPenThickness
)

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.
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.
See Also