Convert dicom to png
Contents
[
Hide
]
Using Aspose.Imaging we can convert DICOM image to Png.
The following code snippet shows you how to convert DICOM to Png.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |