Represents a visual tool for zooming of image in image viewer.
Image in image viewer can be zoomed-in as follows:
- place the mouse to the desired position
- press Zoom-in button (ZoomInButton) to zoom-in the image
Image in image viewer can be zoomed-out as follows:
- place the mouse to the desired position
- press Zoom-out button (ZoomOutButton) to zoom-out the image
This C#/VB.NET code shows how to set the ZoomTool as active visual in ImageViewer.
Class ZoomToolExample
Public Sub SetZoomToolAsActiveVisualToolOfImageViewer(viewer As Vintasoft.Imaging.UI.ImageViewer)
' create an instance of the ZoomTool class
Dim zoomTool1 As New Vintasoft.Imaging.UI.VisualTools.ZoomTool()
' set the tool as the current tool of the ImageViewer
viewer.VisualTool = zoomTool1
End Sub
End Class
class ZoomToolExample
{
public void SetZoomToolAsActiveVisualToolOfImageViewer(
Vintasoft.Imaging.UI.ImageViewer viewer)
{
// create an instance of the ZoomTool class
Vintasoft.Imaging.UI.VisualTools.ZoomTool zoomTool1 =
new Vintasoft.Imaging.UI.VisualTools.ZoomTool();
// set the tool as the current tool of the ImageViewer
viewer.VisualTool = zoomTool1;
}
}
System.Object
 Vintasoft.Imaging.UI.VisualTools.VisualTool
   Vintasoft.Imaging.UI.VisualTools.ZoomTool
Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5