Represents a visual tool for panning an image in image viewer.
Image in image viewer can be panned as follows:
- place the mouse to the desired position
- press and hold the action button (ActionButton)
- pull the cursor for panning the image
If
ActionButton is set to right mouse button, context menu during action can be disabled with the
DisableContextMenu property.
This C#/VB.NET code shows how to set the PanTool as active visual in ImageViewer.
Class PanToolExample
Public Sub SetPanToolAsActiveVisualToolOfImageViewer(viewer As Vintasoft.Imaging.UI.ImageViewer)
' create an instance of the PanTool class
Dim panTool1 As New Vintasoft.Imaging.UI.VisualTools.PanTool()
' set the tool as the current tool of the ImageViewer
viewer.VisualTool = panTool1
End Sub
End Class
class PanToolExample
{
public void SetPanToolAsActiveVisualToolOfImageViewer(
Vintasoft.Imaging.UI.ImageViewer viewer)
{
// create an instance of the PanTool class
Vintasoft.Imaging.UI.VisualTools.PanTool panTool1 =
new Vintasoft.Imaging.UI.VisualTools.PanTool();
// set the tool as the current tool of the ImageViewer
viewer.VisualTool = panTool1;
}
}
System.Object
 Vintasoft.Imaging.UI.VisualTools.VisualTool
   Vintasoft.Imaging.UI.VisualTools.PanTool
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5