This article provides you with the easiest way of converting DICOM images to JPG, PNG, BMP and GIF formats in C#.

DICOM (Digital Imaging and Communications in Medicine) is the standard format for medical imaging. It stores image data and metadata (header) in a single file. Common DICOM scans include ultrasounds, MRIs, and X‑rays, which are shared between healthcare providers.
To view DICOM files, many offline and online viewers exist. When you need to embed DICOM images in presentations or web pages, you must convert them to JPG, GIF, PNG, BMP, or another common format. This article shows how to programmatically convert DICOM images in C# to the following formats:
- JPG
- GIF
- PNG
- BMP
C# DICOM to JPG, GIF, PNG, and BMP Converter - Free Download
We use Aspose.Imaging for .NET, a simple API for creating and manipulating images in .NET applications. Aspose.Imaging for .NET is available on NuGet and as downloadable binaries.
Convert DICOM to JPG in C#
Steps to convert DICOM to JPG:
- Load the DICOM file with a FileStream.
- Create a DicomImage instance using the FileStream.
- Choose the active page (or use the default page).
- Save the image with
DicomImage.Save(string, ImageOptionsBase).
Input DICOM

DICOM to JPEG

Convert DICOM to GIF in C#
Converting DICOM to GIF is straightforward. Access the DICOM file and save it with a .gif extension.
- Use the DicomImage class to open the file.
- Call
DicomImage.Save(string, ImageOptionsBase)to create the GIF.
C# DICOM to PNG Conversion
The PNG conversion follows the same pattern as JPEG. Load the file with DicomImage and save it using a .png extension.
Export DICOM to BMP in C#
To create a BMP file, open the DICOM with DicomImage and save it using DicomImage.Save(string, ImageBaseOptions).
Conclusion
You now know how to convert DICOM images to PNG, JPG, BMP, and GIF using C#. Integrate the provided code samples into your applications to perform fast DICOM conversion.
C# DICOM to Image Converter - Learn More
Explore more about working with images using Aspose.Imaging for .NET API.
See also
Info: You may find Aspose Text to GIF web app interesting.