XDoc.Converter
Features
Tech Specs
How-to C#
Pricing

C# Document Converter Library
C# Tiff Convert: How to Convert Dicom to Tiff Image File


C# Demo Code Below will Help You to Render and Convert Dicom Image to Tiff Image





XDoc.Converter for .NET is a complete file conversion library package. If you need to convert and change one image to another image in C# program, there would be no need for any third-party tools. After quick integration, various image conversion features are feasible in your application. Now, on this page, we will only talk about how to perfrom rapid conversion from Dicom image to Tiff image.


Image Conversion in C#: Dicom to Tiff Demo



This is a C# prgoramming demo for Dicom to Tiff conversion. If you have additional programming requests, please contact us via email (support@rasteredge.com). The following demo code will create an output .tif file with default resolution(96) and default compression(JPEG).

// Define input and output files path.
String inputFilePath = @"C:\input.dcm";
String outputFilePath = @"C:\output.tif";

// Convert Dicom to Tiff.
ConvertResult result = DocumentConverter.ToDocument(inputFilePath, outputFilePath, FileType.DOC_TIFF);


Converting DICOM File to Tiff Image with Settings(Compression and Resolution)



You may directly copy and paste this PDF to Tiff conversion demo to your C# .NET program. The following demo code will create an output .tif file with resolution(100) and compression(CCITT).

//Define the document save setting options
DocumentSaveOption option = new DocumentSaveOption(FileType.DOC_TIFF);

//set the output tiff file compression
option.CompressionMode = ImageCompress.CCITT;

//set the output tiff file resolution
option.Resolution = 200;
DocumentConverter.ToDocument(@"C:\input.dcm", @"C:\output.tif", option);