LAUREL BRIDGE

Program Class

DICOM Connectivity Framework V3.4
An example program to demonstrate how to convert a DICOM dataset containing pixel data to a common image format.
Inheritance Hierarchy

SystemObject
  LaurelBridge.DCF.Examples.DicomToImageProgram

Namespace:  LaurelBridge.DCF.Examples.DicomToImage
Assembly:  DicomToImage (in DicomToImage.exe) Version: DCF34 r11232 DCF_3_4_20
Syntax

C#
public class Program

The Program type exposes the following members.

Constructors

  NameDescription
Public methodProgram
Initializes a new instance of the Program class
Top
Methods

  NameDescription
Public methodStatic memberMain
The main entry point for DicomToImage.
Top
Remarks

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.

The DicomImage support 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 CreateBitmap 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 LoadFrame(Bitmap, Int32, ImageInfo) method. See the GetThumbnail method in DicomImage for how to create a fixed-size thumbnail image of any size with the Bitmap scaled up or down to fit.

See Also

Reference