
create thumbnail viewer var thumbnailViewer = new .WebThumbnailViewerJS( "WebThumbnailViewer1Div") New ( "vintasoft/api/MyVintasoftImageApi") New ( "vintasoft/api/MyVintasoftImageCollectionApi")

New ( "vintasoft/api/MyVintasoftFileApi") specify web services, which should be used by Vintasoft Web Document Viewer VintaSoft Image Viewer Demo (ASP.NET Core)
#API IMAGE VIEWER CODE#
Here is HTML code that adds references to Vintasoft JavaScript = null Add references to Vintasoft JavaScript files:.Open web view - file "Views\Default\Index.cshtml".This document will be displayed in image viewer. NET v12.1\Images\VintasoftImagingDemo.pdf" to the folder.
#API IMAGE VIEWER PDF#
Create folder "wwwroot\UploadedImageFiles\SessionID" and copy test PDF document.Client side: Add JavaScript code that allows to display image viewer.NET v12.1\Bin\JavaScript\" folder into "wwwroot\Scripts\" folder. Copy, and filesįrom "\VintaSoft Imaging.Client side: Add Vintasoft JavaScript files to the project.Select "Razor View" template, Set view name to "Index", uncheck "Use a layout page" checkbox and press the "Add" button => "Views\Default\Index.cshtml" file will be created.Open "DefaultController.cs" file, press the right mouse button on the "Index" method of DefaultController class and select the "Add View." menu from context menu.Client side: Create web view for displaying image viewer.public void Configure(IApplicationBuilder app, IWebHostEnvironment env)Įndpoints.MapControllerRoute( "default", "") Use this method to configure the HTTP request pipeline. This method gets called by the runtime. NET SDK should use SkiaSharp library for drawing of 2D graphics
#API IMAGE VIEWER HOW TO#
For more information on how to configure your application, visit public void ConfigureServices(IServiceCollection services) Use this method to add services to the container. Here are source codes of MyVintasoftFileApiController class:

Open "Startup.cs" file, add code line ".SkiaSharpDrawingFactory.SetAsDefault() "Īt the beginning of ConfigureServices method - added code specifies that VintaSoft Imaging.Add reference to the SkiaSharp nuget-package version 2.88.0.Here are steps, which should be made for using SkiaSharp engine:
#API IMAGE VIEWER WINDOWS#
If ASP.NET application must be used in Windows only, System.Drawing or SkiaSharp drawing engine should be used. If ASP.NET application must be used in Windows or Linux, SkiaSharp drawing engine should be used.
