Visual C#.NET: Read DICOM Medical Image

How to read DICOM medical images on document image using C#.NET
Yiigo.Image for .NET provides advanced DICOM medical image reading & scanning support, allowing developers to read and process DICOM medical images on documents and images from documents and images. ASP.NET Document Viewer Control supports viewing dicom documents in, which also supports PDF Viewer in ASP.NET, Word Viewer in ASP.NET, Tiff Viewer in ASP.NET and Text File Viewer in ASP.NET. Find more DICOM medical image reading information on Yiigo.Imaging for .NET DICOM Reading Plugin.
Yiigo.Imaging for .NET DICOM Reading Plugin has those following functionalities:
  • Read DICOM images from local file, web, scanners
  • Create, load and save all IOD classes within the DICOM Specifications and Supplements
  • Annotate DICOM images with multiple types
  • Create & Save Data Set
  • Reads a specified frame in a multi-framed DICOM image
  • Traverse a DICOM data set
  • Export DICOM files to JPEG2000 (compressed) or BMP (uncompressed bitmap) images
This document provides comprehensive Visual C#.NET samples for guiding developers to read DICOM medical images on documents and images using Yiigo.Image for .NET. Find more annotation tutorials on VB.NET DICOM Medical Image Reading, Web Imaging Viewer DICOM Medical Image Reading Support and Read DICOM Medical Images in .NET Winforms.
Read DICOM Medical Images with C#.NET Sample Code


Before reading DICOM medical images in Visual C#.NET, make sure that you have installed.

Start to Read DICOM Medical Images

  • Open and run your Microsoft Visual Studio;
  • Choose either "Visual C# Projects" in "New Project" dialog box;
  • Choose "Windows Application" in the "Templates" List and name it "YiigoImagingDICOMReadCsharp";
  • Right-click on the "References" folder, and select "Add Reference..." from the context menu in the "Solution Explorer" window;
  • In the "Add Reference" dialog box, select the ".NET" tab and browse to Yiigo.Imaging.Net.dll library and Yiigo.Imaging.Net.Dicom.Read.dll ;
  • Add it to your Visual C# applications;
  • Call Yiigo .NET Image Namespace & Copy those following codes:
using System.IO;
using System.Drawing.Printing;
using Yiigo.Imaging;
using Yiigo.Imaging.Processing;
using Yiigo.Imaging.DicomRead;

// Add DICOM reader to you applications
private void ReadDICOM(Stream stm)
_dataSet = new DicomDataset(string name, DicomDataSetLoad stm);
_dImage = _dataSet.GetModalityTransformedImage(0);
_image = _dImage.AllocateImage();
_window = _dImage.DefaultWindow;
_leveling = _dImage.DefaultLeveling;

private void UpdateImage()

int window = _window;
if (_dImage.ImageCameFromSignedSamples)
window += _dImage.ImageDataShiftedBy;
_dImage.GetAtalaImage(_image, window, _leveling); // transforms into image

// Save DICOM images
private void Save();
Other Plugins
Image Viewer CoreBarcode PluginPDF Read & WriteTesseract OCR PluginForm Processing PluginJBIG2 CodecJPEG2000 CodecISIS ScannerTwain ScannerDICOM ReaderCAD Scanner