VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
In This Topic
    Building and transformation of annotations in WinForms
    In This Topic
    The AnnotationVisualTool allows the user to build or transform annotation in AnnotationViewer.
    The building of annotation is performed by annotation builder, the transformation of annotation is performed by annotation transformer. The visual tool gets information about builder and transformer from AnnotationView class:

    Build annotation in WinForms annotation viewer

    For newly created annotation the value of AnnotationView.InteractionController property is equal to the value of AnnotationView.Builder property, i.e. annotation is ready for building.
    The AnnotationVisualTool.AddAndBuildAnnotation method allows to start the annotation building process, i.e. method adds the annotation into the annotation collection of focused image, gets the current interaction controller (builder) using AnnotationView.InteractionController property and starts the building of annotation.
    For annotation building can be used the following interaction controllers (builders):

    Transform annotation in WinForms annotation viewer

    Transformation of annotation, which is focused in AnnotationViewer, can be started using mouse. For annotation transformation can be used the following interactive controllers:

    Transform annotation using several controllers

    The CompositeInteractionController class allows to combine several interactive controllers.

    For example, FreeTextAnnotationView uses composite interaction controller because FreeTextAnnotationView consists from 2 annotations (TextAnnotationView and LeaderLineAnnotationView) and needs to interact with both annotations using different interactive controllers: