VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.UI.VisualTools Namespace / ZoomTool Class
Members Example



In This Topic
    ZoomTool Class
    In This Topic
    Visual tool for zooming of image in image viewer.
    Object Model
    ZoomTool ClassImageViewer Class
    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 example shows how to set the ZoomTool as active visual in Vintasoft.Imaging.UI.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: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also