Click or drag to resize

AtalaImageViewerMouseTool Property

Gets or sets the mouse tool for the viewer.

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 MouseTool MouseTool { get; set; }

Property Value

Type: MouseTool
The mouse tool for the viewer.
Examples
 <Window x:Class="WpfControlsDemo.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:atala="clr-namespace:Atalasoft.Imaging.Wpf;assembly=Atalasoft.dotImage.Wpf"
    Title="WPF Controls Demo" Height="565" Width="756"
    Background="White"
    >
  <Grid>
    <atala:AtalaImageViewer Name="Viewer">
      <atala:AtalaImageViewer.MouseTool>
        <atala:MagnifierMouseTool Size="120,120" Magnification="2.0">
          <atala:MagnifierMouseTool.Pen>
            <Pen Thickness="1">
              <Pen.Brush>
                <SolidColorBrush Color="Black"/>
              </Pen.Brush>
            </Pen>
          </atala:MagnifierMouseTool.Pen>
        </atala:MagnifierMouseTool>
      </atala:AtalaImageViewer.MouseTool>
    </atala:AtalaImageViewer>
  </Grid>
</Window>
Me.Viewer.MouseTool = New MagnifierMouseTool(New Size(120, 120), 2, New Pen(New SolidColorBrush(Colors.Black), 1))
this.Viewer.MouseTool = new MagnifierMouseTool(new Size(120, 120), 2, new Pen(new SolidColorBrush(Colors.Black), 1));
See Also