VintaSoft Imaging .NET SDK 15.1: Документация для .NET разработчика
В этом разделе
Изменение визуального оформления точек взаимодействия аннотаций в WinForms
В этом разделе
В режиме "Автор" взаимодействие между пользователем и аннотациями осуществляется с помощью контроллеров взаимодействия. Каждый контроллер взаимодействия состоит из набора областей взаимодействия (точек изменения размера, точек полигона, точки вращения, помощника вращения и т. д.).

SDK предоставляет вспомогательный класс AnnotationInteractionAreaAppearanceManager, который позволяет изменять настройки внешнего вида областей взаимодействия визуального инструмента, производного от класса UserInteractionVisualTool.


Вот C#/VB.NET код, который демонстрирует, как изменить радиус точек взаимодействия (точек изменения размера, точек многоугольника, точки вращения), используемых пользователем для взаимодействия с аннотациями:
public MainForm()
{
    //...

    Vintasoft.Imaging.UI.VisualTools.UserInteraction.InteractionAreaAppearanceManager appearanceManager = 
        new Vintasoft.Imaging.UI.VisualTools.UserInteraction.InteractionAreaAppearanceManager();

    appearanceManager.VisualTool = annotationViewer1.AnnotationVisualTool;

    // set distance from annotation to rotation point
    appearanceManager.RotationPointDistance = 30;
    // set radius of rotation point
    appearanceManager.RotationPointRadius = 10;
    // set radius of resize point
    appearanceManager.ResizePointsRadius = 10;
    // set radius of polygon point
    appearanceManager.PolygonPointRadius = 8;
}
  
Public Sub New()
    '...

    Dim appearanceManager As New Vintasoft.Imaging.UI.VisualTools.UserInteraction.InteractionAreaAppearanceManager()

    appearanceManager.VisualTool = annotationViewer1.AnnotationVisualTool

    ' set distance from annotation to rotation point
    appearanceManager.RotationPointDistance = 30
    ' set radius of rotation point
    appearanceManager.RotationPointRadius = 10
    ' set radius of resize point
    appearanceManager.ResizePointsRadius = 10
    ' set radius of polygon point
    appearanceManager.PolygonPointRadius = 8
End Sub