TIOParams.DICOM_JPEGQuality
Declaration
property DICOM_JPEGQuality: integer;
Description
Specifies the quality factor (ranging from 1 to 100) to use when saving a DICOM file as a lossy JPEG (
iedcJPEG compression).
Higher values improve image quality but require more disk space.
Default: 80 (Specified by
IOParamDefaults)
Note:
◼If you are using a
TIEMultiBitmap or
TImageEnMView, you can use
DuplicateCompressionInfo to propogate the parameter to all frames
◼See JPEG Quality comparisons at:
JPEG_Quality
// 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' );
See Also
◼DICOM_Compression
◼DICOM_J2000Rate
◼JPEG_Quality