Convert dicom to png

Contents
[ ]

Using Aspose.Imaging we can convert DICOM image to Png.

The following code snippet shows you how to convert DICOM to Png.

import com.aspose.imaging.Image;
import com.aspose.imaging.imageoptions.PngOptions;
try (com.aspose.imaging.fileformats.dicom.DicomImage image =
(com.aspose.imaging.fileformats.dicom.DicomImage ) Image.load("input.dicom"))
{
PngOptions options = new PngOptions();
image.save("output.png", options);
}