VintaSoft Imaging .NET SDK v8.6
In This Topic
    View images with annotations in HTML5
    In This Topic

    The Vintasoft.Imaging.Annotation.Html5.WebAnnotationViewerJS class is a JavaScript control for viewing images with annotations and annotating images in any HTML5 compatible web browser. The class can be created on a client-side of web application. The class requires a web service for getting information about image, rendering an image and serializing/deserializing of annotations. As the web service can be used Web API 2 controller (ASP.NET MVC 5) or Web API controller (ASP.NET MVC 4).

    Vintasoft.Imaging.Annotation.Html5.WebAnnotationViewerJS class complements the functionality of Vintasoft.Imaging.Html5.WebImageViewerJS class and:

    Here is an example that demonstrates how to start building of rectangular annotation in annotated HTML5 image viewer:
    <script type="text/javascript">
        // create an annotation viewer
        var annotationViewer1 = new Vintasoft.Imaging.Annotation.Html5.WebAnnotationViewerJS("WebAnnotationViewer1");
        // create a rectangle annotation
        var rectangle = new Vintasoft.Imaging.Annotation.Html5.WebRectangleAnnotationViewJS();
        // start building of annotation
        annotationViewer1.addAndBuildAnnotation(rectangle);
    </script>