VintaSoft Imaging .NET SDK v8.7
In This Topic
    View images with annotations in HTML (SVG)
    In This Topic

    The Vintasoft.Imaging.Annotation.Svg.WebAnnotationViewerJS class is a JavaScript control for viewing images with annotations and annotating images in any SVG 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 HTTP handler, WCF service, Web API controller (ASP.NET MVC 4) or Web API 2 controller (ASP.NET MVC 5).

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

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