LEADTOOLS For .NET Class Library Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.28
File Formats: DICOM Format (DIC)

Note: This format is supported only in Document/Medical.

DICOM (DIC) files are commonly used in medical images. LEADTOOLS reads a broad range of DICOM formats, converting them to LEAD-supported bits-per-pixel as necessary. LEADTOOLS writes DICOM files in the LEAD-supported bits-per-pixel. DICOM files can contain many comment fields of various types. You can use the Leadtools.Codecs.RasterCodecs.ReadComment(System.IO.Stream,System.Int32,Leadtools.RasterCommentMetadataType) method to read comments in an existing file. Before writing a file and the Leadtools.Codecs.RasterCodecs.WriteComments(System.IO.Stream,System.Int32,Leadtools.RasterCollection{Leadtools.RasterCommentMetadata}) method to write comments to a file.

You can read DICOM files as follows:

You can write DICOM files as 8, 12, or 16-bit grayscale, 8-bit palettized color, or 24-bit RGB color (8 bits per plane).

The file constants associated with this file format are:

WIC Codec CLSID

WIC Codec Subformat

RasterImageViewer.Save
File Constant

Read Support

Write Support

Description

CLSID_WICLeadDicomEncoder

WICLeadSubFormatDicomGray

DicomGray

1 to 16 BPP (Grayscale)

1 to 16 BPP (Grayscale)

Grayscale DICOM uncompressed

CLSID_WICLeadDicomEncoder

WICLeadSubFormatDicomColor

DicomColor

8, 24 BPP

8, 24 BPP

Color DICOM uncompressed

CLSID_WICLeadDicomEncoder

WICLeadSubFormatDicomRleGray

DicomRleGray

8, 12, 16, 24 BPP

8, 12, 16, 24 BPP

Grayscale DICOM RLE compressed

CLSID_WICLeadDicomEncoder

WICLeadSubFormatDicomRleColor

DicomRleColor

24 BPP

24 BPP

Color DICOM RLE compressed

CLSID_WICLeadDicomEncoder

WICLeadSubFormatDicomJpegGray DicomJpegGray 8, 16 BPP (Grayscale) 8, 16 BPP (Grayscale) Grayscale DICOM JPEG compressed

CLSID_WICLeadDicomEncoder

WICLeadSubFormatDicomJpegColor DicomJpegColor 24 BPP 24 BPP Color DICOM JPEG compressed

CLSID_WICLeadDicomEncoder

WICLeadSubFormatDicomJ2kGray DicomJ2kGray 8, 16 BPP (Grayscale) 8, 16 BPP (Grayscale) Grayscale DICOM JPEG 2000 compressed

CLSID_WICLeadDicomEncoder

WICLeadSubFormatDicomJ2kColor DicomJ2kColor 24 BPP 24 BPP Color DICOM JPEG 2000 compressed

Required DLL: Leadtools.Dicom.Dll. For a listing of the exact DLLs needed, based on the toolkit version, refer to Files To Be Included With Your Application.