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. Read Support is provided in all toolkits. Full support for this file format is available in the Medical Imaging toolkits.
LEADTOOLS writes DICOM files in the LEAD-supported bits-per-pixel. DICOM files can contain many comment fields of various types. Use the L_ReadFileComment function to read comments in an existing file. Before writing a file, use the L_SetComment function to create an array of comments to be saved in the file. Use the L_DeleteComment function to delete a comment field from 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:
Constant | Read Support | Write Support | Description |
---|---|---|---|
FILE_DICOM_GRAY | 1 to 16 BPP (Grayscale) | 1 to 16 BPP (Grayscale) | [89] Grayscale DICOM uncompressed. |
FILE_DICOM_COLOR | 8, 24 BPP | 8, 24 BPP | [90] Color DICOM uncompressed. |
FILE_DICOM_RLE_GRAY | 1 to 16 BPP (Grayscale) | 1 to 16 BPP (Grayscale) | [125] Grayscale DICOM RLE compressed. |
FILE_DICOM_RLE_COLOR | 8, 24 BPP | 8, 24 BPP | [126] Color DICOM RLE compressed. |
FILE_DICOM_JPEG_GRAY | 8, 16 BPP (Grayscale) | 8, 16 BPP (Grayscale) | [127] Grayscale DICOM JPEG compressed. |
FILE_DICOM_JPEG_COLOR | 24 BPP | 24 BPP | [128] Color DICOM JPEG compressed. |
FILE_DICOM_J2K_GRAY | 8, 16 BPP (Grayscale) | 8, 16 BPP (Grayscale) | [293] Grayscale DICOM JPEG 2000 compressed. |
FILE_DICOM_J2K_COLOR | 24 BPP | 24 BPP | [294] Color DICOM JPEG 2000 compressed. |
FILE_DICOM_JPEG_LS_GRAY | 8, 16 BPP (Grayscale) | 8, 16 BPP (Grayscale) | [383] Grayscale DICOM JPEG-LS compressed. |
FILE_DICOM_JPEG_LS_COLOR | 24 BPP | 24 BPP | [384] Color DICOM JPEG-LS compressed. |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.