TIOParams.DICOM_Compression
Declaration
property DICOM_Compression: TIEDicomCompression;
Description
The compression used for a DICOM file.
Note:
◼If you are using a
TIEMultiBitmap or
TImageEnMView, you can use
DuplicateCompressionInfo to propogate the parameter to all frames
◼If you are using
iedcJPEG compression, specify JPEG quality using
DICOM_JPEGQuality
◼If you are using
iedcJPEG2000 compression, specify JPEG2000 quality using
DICOM_J2000Rate
Default: iedcUncompressed
// Save uncompressed DICOM
ImageEnView1.IO.Params.DICOM_Compression := iedcUncompressed;
ImageEnView1.IO.SaveToFileDICOM( 'C:\image.dicom' );
// Save DICOM with lossy JPEG compression
ImageEnView1.IO.Params.DICOM_Compression := iedcJPEG;
ImageEnView1.IO.Params.DICOM_JPEGQuality := 75;
ImageEnView1.IO.SaveToFileDICOM( 'C:\image.dicom' );
// Save DICOM with lossy JPEG2000 compression
ImageEnView1.IO.Params.DICOM_Compression := iedcJPEG2000;
ImageEnView1.IO.Params.DICOM_J2000Rate := 0.10;
ImageEnView1.IO.SaveToFileDICOM( 'C:\image.dicom' );
// Save DICOM with lossless JPEG2000 compression
ImageEnView1.IO.Params.DICOM_Compression := iedcLosslessJPEG2000;
ImageEnView1.IO.SaveToFileDICOM( 'C:\image.dicom' );