SelectionMouseTool Constructor (Rect, SelectionMouseToolType, MouseToolBehavior, Pen, Color, Color, Brush, Boolean, Boolean, Double, AspectRatioMode, Boolean, Duration, Boolean, ImageCommand) |
Creates a new instance of SelectionMouseTool specifying its property values.
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 public SelectionMouseTool(
Rect bounds,
SelectionMouseToolType selectionType,
MouseToolBehavior toolBehavior,
Pen pen,
Color lineColor,
Color lineBackgroundColor,
Brush fill,
bool maintainPenThickness,
bool confineSelectionToImage,
double aspectRatio,
AspectRatioMode aspectRatioCornerMode,
bool animated,
Duration animationDuration,
bool masked,
ImageCommand maskedImageCommand
)
Public Sub New (
bounds As Rect,
selectionType As SelectionMouseToolType,
toolBehavior As MouseToolBehavior,
pen As Pen,
lineColor As Color,
lineBackgroundColor As Color,
fill As Brush,
maintainPenThickness As Boolean,
confineSelectionToImage As Boolean,
aspectRatio As Double,
aspectRatioCornerMode As AspectRatioMode,
animated As Boolean,
animationDuration As Duration,
masked As Boolean,
maskedImageCommand As ImageCommand
)
Parameters
- bounds
- Type: System.WindowsRect
The selection bounds in image coordinates. - selectionType
- Type: Atalasoft.Imaging.WpfSelectionMouseToolType
The type of selection for the tool. - toolBehavior
- Type: Atalasoft.Imaging.WpfMouseToolBehavior
The behavior for the tool. - pen
- Type: System.Windows.MediaPen
The pen used to draw the line. - lineColor
- Type: System.Windows.MediaColor
The pen color for the line if the Pen is null (Nothing in
VB). - lineBackgroundColor
- Type: System.Windows.MediaColor
The background pen color for the line. - fill
- Type: System.Windows.MediaBrush
The brush used to fill the selection. - maintainPenThickness
- Type: SystemBoolean
Indicates whether the pen thickness will render the same size or scale with the
zoom level. - confineSelectionToImage
- Type: SystemBoolean
Indicates whether the selection should be confined to the image area.
- aspectRatio
- Type: SystemDouble
The width to height aspect ratio of the bounds. A value of zero will disable this
feature. - aspectRatioCornerMode
- Type: Atalasoft.Imaging.WpfAspectRatioMode
Determines how the selection will act when the user grabs a corner to resize
and AspectRatio is not zero. - animated
- Type: SystemBoolean
Indicates whether the built-in animation will be used. - animationDuration
- Type: System.WindowsDuration
The duration for the built-in animation. - masked
- Type: SystemBoolean
Indicates whether the selection using masking on the image. - maskedImageCommand
- Type: Atalasoft.Imaging.ImageProcessingImageCommand
The ImageCommand used for the masking effect.
See Also