VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.UI.VisualTools Namespace / RectangularSelectionTool Class
Members Object Syntax Remarks Example Hierarchy Requirements SeeAlso
In This Topic
RectangularSelectionTool Class
In This Topic
Visual tool for selecting a rectangular image region in image viewer.
Object Model
IInteractionController IInteractionController RectangularObjectTransformer IObjectClipboard ImageViewer RectangularSelectionTool
Syntax
Remarks

Rectangular region of image in image viewer can be selected as follows:

  • place the mouse to the desired position
  • press the action button (ActionButton) and select the region by holding the action button
  • release the action button to stop the selection of region

Rectangular region of image in image viewer can be programmatically selected with Rectangle property.

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 RectangularSelectionTool as active visual tool in ImageViewer.


Class RectangularSelectionToolExample
    Public Sub SetRectangularSelectionToolAsActiveVisualToolOfImageViewer(viewer As Vintasoft.Imaging.UI.ImageViewer)
        ' create an instance of the RectangularSelectionTool class
        Dim rectangularSelectionTool1 As New Vintasoft.Imaging.UI.VisualTools.RectangularSelectionTool()
        ' set the tool as the current tool of the ImageViewer
        viewer.VisualTool = rectangularSelectionTool1
    End Sub
End Class


class RectangularSelectionToolExample
{
    public void SetRectangularSelectionToolAsActiveVisualToolOfImageViewer(
        Vintasoft.Imaging.UI.ImageViewer viewer)
    {
        // create an instance of the RectangularSelectionTool class
        Vintasoft.Imaging.UI.VisualTools.RectangularSelectionTool rectangularSelectionTool1 = 
            new Vintasoft.Imaging.UI.VisualTools.RectangularSelectionTool();
        // set the tool as the current tool of the ImageViewer
        viewer.VisualTool = rectangularSelectionTool1;
    }
}

Inheritance Hierarchy
Requirements

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

See Also