VintaSoft Imaging .NET SDK v8.7
In This Topic
    View thumbnails with annotations in WPF
    In This Topic

    WpfAnnotatedThumbnailViewer class, a WPF control - inheritor of WpfThumbnailViewer class, is intended for viewing image thumbnails with annotations.

    WpfAnnotatedThumbnailViewer class extends the functionality of WpfThumbnailViewer class and allows to:


    Here is an example showing how to load images with annotations from file and display their thumbnails with annotations:
    ' The project, which uses this code, must have references to the following assemblies:
    ' - Vintasoft.Imaging.Annotation.Wpf.UI
    
    Private Sub LoadImagesWithAnnotation(wpfAnnotatedThumbnailViewer As Vintasoft.Imaging.Annotation.Wpf.UI.WpfAnnotatedThumbnailViewer, filename As String)
            wpfAnnotatedThumbnailViewer.Images.Add(filename)
    End Sub
                  
    
    // The project, which uses this code, must have references to the following assemblies:
    // - Vintasoft.Imaging.Annotation.Wpf.UI
    
    void LoadImagesWithAnnotation(
        Vintasoft.Imaging.Annotation.Wpf.UI.WpfAnnotatedThumbnailViewer wpfAnnotatedThumbnailViewer, string filename)
    {
        wpfAnnotatedThumbnailViewer.Images.Add(filename);
    }
                    
    


    WpfAnnotatedThumbnailViewer class can be used separately or together with AnnotationViewer class.

    If WpfAnnotatedThumbnailViewer class is used separately then it just shows annotations on thumbnails.

    If WpfAnnotatedThumbnailViewer class is used together with AnnotationViewer class then it shows annotations on thumbnails and, at the same time, performs simultaneous update of active image thumbnail in AnnotationViewer when annotations associated with the thumbnail are changing (new annotation is added, existing annotation is transformed, etc).