C#: Online Guide
How To: Dicom SDK
Dicom to Tiff
Dicom to Tiff
  |  
Home ›› XDoc.Dicom ›› C# Dicom: Convert Dicom to Tiff

C# DICOM - Convert DICOM to TIFF File


How to Use C#.NET Class Code to Render and Convert DICOM to TIFF




.NET Libraries for C# DICOM-to-TIFF Conversion



In the download package of DocImage SDK for .NET, there are several DLL libraries that are capable of performing various DICOM document imaging functions in Visual C#.NET applications, like DICOM web document viewer creation, DICOM file annotation, and DICOM document conversion.


Related .net document control helps:
asp.net file viewer: ASP.NET Document Viewer Control in C#: View, Annotate, Redact web document files in ASP.NET using C#
asp.net mvc file viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net image file viewer: ASP.NET Image Document Viewer Control: view, annotate, redact, convert image files in html web browser
file redact asp.net: Redact document ASP.NET: add, delete, apply redaction on PDF files in web browser using C#.net
asp.net sharepoint pdf editor control: ASP.NET SharePoint PDF Editor Control: view, edit, annotate, redact PDF document in SharePoint sites
asp.net webforms pdf editor control: ASP.NET WebForms PDF Editor: create, view, edit, annotate, redact PDF file in ASP.NET WebForms application
asp.net pdf viewer control: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET


For DICOM document conversion in C#.NET, three .NET document imaging libraries will be used, including RasterEdge.Imaging.Basic.dll, RasterEdge.Imaging.DICOM.dll and RasterEdge.Imaging.TIFF.dll.


Among these fully functional .NET DLL libraries, RasterEdge.Imaging.Basic.dll is the basis for all supportive documents and images manipulation in C#.NET applications.


As for RasterEdge.Imaging.DICOM.dll, it is necessary for DICOM image file viewing, annotating and converting.


And RasterEdge.Imaging.TIFF.dll should be used when you want to render and convert DICOM document to TIFF document in Visual C#.NET projects.




Sample Code for C# DICOM-to-TIFF Conversion



Add necessary references references;


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.JPEG2000.dll


  RasterEdge.Imaging.DICOM.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XDoc.TIFF.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.Imaging.DICOM;


.NET DICOM Document Conversion SDK is capable of not only rendering and converting DICOM image file to TIFF image file in C#.NET application, but also converting and saving annotated DICOM to TIFF document. Here, we only provide C#.NET sample code for DICOM-to-TIFF conversion. If you are in need of C# sample code for DICOM image annotating, please click to see details.




// load a DCMDocument
DCMDocument doc = new DCMDocument(@"c:\a.dcm");

// convert DICOM to TIFF
doc.ConvertToDocument(DocumentType.TIFF, @"c:\sample.tiff");



public override void ConvertToDocument(DocumentType targetType, Stream stream)
Parameters:
public override void ConvertToDocument(DocumentType targetType, string filePath)
Parameters:
public override void ConvertToDocument(DocumentType targetType, float zoomValue, Stream desStream)
Parameters:
public override void ConvertToDocument(DocumentType targetType, float zoomValue, string filePath)
Parameters:
public override void ConvertToDocument(DocumentType targetType, int resolution, Stream desStream)
Parameters:
public override void ConvertToDocument(DocumentType targetType, int resolution, string filePath)
Parameters:
public override void ConvertToDocument(DocumentType targetType, Stream desStream, ImageOutputOption options)
Parameters:
public override void ConvertToDocument(DocumentType targetType, string filePath, ImageOutputOption options)
Parameters: