VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.UI.VisualTools Namespace / ZoomTool Class
Members Object Syntax Remarks Example Hierarchy Requirements SeeAlso
In This Topic
    ZoomTool Class
    In This Topic
    Represents a visual tool for zooming of image in image viewer.
    Object Model
    ImageViewer ZoomTool
    Syntax
    'Declaration
    
    Public Class ZoomTool
       Inherits VisualTool
    
    
    public class ZoomTool : VisualTool
    
    
    public __gc class ZoomTool : public VisualTool*
    
    
    public ref class ZoomTool : public VisualTool^
    
    
    Remarks

    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

    Example

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

    Inheritance Hierarchy

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

    Requirements

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

    See Also