ASP.NET WebForms + HTTP handlers: Animate DICOM images in web image viewer.

Code samples for VintaSoft Imaging .NET SDK. Here you can request a code sample.

Moderator: Alex

Post Reply
Alex
Site Admin
Posts: 2300
Joined: Thu Jul 10, 2008 2:21 pm

ASP.NET WebForms + HTTP handlers: Animate DICOM images in web image viewer.

Post by Alex »

In this topic we will show how to animate DICOM images, which are stored in files on server, in web image viewers in ASP.NET WebForms application. Web image viewers use REST services based on HTTP handlers.

For doing our task we need:
  • Open Visual Studio .NET 2022.
  • Create an ASP.NET WebForms application project.
  • Add the references to the Vintasoft assemblies (version 12.0.x.x) and Vintasoft JavaScript files to the project:
    • Vintasoft.Shared.dll
    • Vintasoft.Shared.Web.dll
    • Vintasoft.Imaging.dll
    • Vintasoft.Imaging.Gdi.dll
    • Vintasoft.Imaging.Dicom.dll
    • Vintasoft.Imaging.Web.Services.dll
    • Vintasoft.Imaging.Web.HttpHandlers.dll
    • Scripts\Vintasoft\Vintasoft.Shared.js
    • Scripts\Vintasoft\Vintasoft.Imaging.Html5.js
    You can add the assemblies and JavaScript files manually or automatically. Add the "Vintasoft.Imaging.Web.HttpHandlers" and "Vintasoft.Imaging.Dicom" Nuget packages to the project and the assemblies and JavaScript files will be added automatically.
  • Create a REST service, which is based on HTTP handler, for manipulating of files on a server.
  • Create a REST service, which is based on HTTP handler, for managing of image collection.
  • Create a REST service, which is based on HTTP handler, for rendering of images and thumbnails.
  • Create a default web page.
  • Add HTML5 web image viewer and HTML5 web thumbnail viewer to the web page. HTML5 web image viewer will play animation from DICOM images. HTML5 web thumbnail viewer will be used for navigating between DICOM files.
  • Load DICOM files and start the animation.
Source codes of ASP.NET WebForms application for VintaSoft Imaging .NET SDK 12 can be downloaded from here.
Post Reply