villarev.blogg.se

Api image viewer
Api image viewer











  1. #API IMAGE VIEWER HOW TO#
  2. #API IMAGE VIEWER PDF#
  3. #API IMAGE VIEWER CODE#
  4. #API IMAGE VIEWER WINDOWS#

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

api image viewer

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:

  • Specify that MyVintasoftFileApiController class is derived from .VintasoftFileApiController class.
  • Select Empty API controller template, set the controller name to the "MyVintasoftFileApiController" and press the "Add" button.
  • Press the right mouse button on the "Controllers" folder and select the "Add => Controller." menu from context menu.
  • Create web service that allows to upload/download file.
  • Add the "Controllers" folder to the project.
  • Server side: Create web services, which allow to upload/download file, manage image collection, get information about images, get thumbnails and render image tiles.
  • System.Drawing library for drawing of 2D graphics.
  • Open "Startup.cs" file, add code line ".GdiGraphicsFactory.SetAsDefault() ".
  • Here are steps, which should be made for using System.Drawing engine: SkiaSharp library for drawing of 2D graphics.

    api image viewer

    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.

  • Server side: Specify drawing engine, which should be used by VintaSoft Imaging.
  • NET v12.1\Bin\DotNet6\An圜PU\" directory to the "Bin" directory ofĪSP.NET Core Web application and add references to assemblies in ASP.NET Core Web application.
  • Server side: Add references to the Vintasoft assemblies to your ASP.NET Core Web application.Ĭopy, , ,.
  • NET 2022 and create a new project, of ASP.NET Core Web application type:
  • Create a blank ASP.NET Core Web application.
  • NET 2022 andĪdd image viewer to ASP.NET Core application. This tutorial shows how to create a blank ASP.NET Core Web application in Visual Studio.













    Api image viewer