ImageEn, unit iexBitmaps

TIOParams.DICOM_J2000Rate

TIOParams.DICOM_J2000Rate


Declaration

property DICOM_J2000Rate: double;


Description

Specifies the compression rate to use when saving a DICOM file as JPEG 2000 (iedcJPEG2000 compression).
Allowed values are from 0 to 1, where 1 is no compression (lossless mode).

Note: If you are using a TIEMultiBitmap or TImageEnMView, you can use DuplicateCompressionInfo to propogate the parameter to all frames

Default: 0.07


Examples

// 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_JPEGQuality