VintaSoft Imaging .NET SDK 15.2: Documentation for .NET developer
Vintasoft.Imaging.UI.VisualTools Namespace / PanTool Class
Members Object Syntax Remarks Example Hierarchy Requirements SeeAlso
In This Topic
PanTool Class
In This Topic
Represents a visual tool for panning an image in image viewer.
Object Model
ImageViewer PanTool
Syntax
'Declaration

Public Class PanTool
   Inherits VisualTool

public class PanTool : VisualTool

Remarks

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.

Example

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;
    }
}

Inheritance Hierarchy

System.Object
   Vintasoft.Imaging.UI.VisualTools.VisualTool
      Vintasoft.Imaging.UI.VisualTools.PanTool

Requirements

Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also