Assembly: DicomToImage (in DicomToImage.exe) Version: DCF34 r11232 DCF_3_4_20
public class Program
Thetype exposes the following members.
Initializes a new instance of theclass
The main entry point for DicomToImage.
This example uses the Windows OpenFileDialog to select a DICOM file, a SaveFileDialog to select an output file along with one of the common, Windows-supported image file formats (BMP, GIF, JPEG, PNG and TIF), DCF support for reading a DICOM dataset into a DicomImage object and getting a Bitmap from that object, and the built-in Windows support for saving the Bitmap in the selected image format.
Thesupport in DCF simplifies working with pixel data as Windows Bitmaps, but makes it possible to work more directly with Bitmaps if desired. Note that the method creates a blank (i.e., black) Bitmap of the same size as the pixel data in the DicomImage, which can then be filled in with any frame in the image using the method. See the method in DicomImage for how to create a fixed-size thumbnail image of any size with the Bitmap scaled up or down to fit.