ImageEn, unit iexBitmaps

TIOParams.DICOM_ContainsImage

TIOParams.DICOM_ContainsImage


Declaration

property DICOM_ContainsImage: Boolean;


Description

Returns False if the DICOM contains tags only (no image).
Set to False to clear the image from the file on saving (i.e. save a tags-only DICOM file).

Default: True


Example

// Display view button if the file does not contain an image
ImageEnView1.IO.LoadFromFile( fn );
btnViewImage.Enabled := ImageEnView1.IO.Params.DICOM_ContainsImage;

// Save tags-only DICOM file
ImageEnView1.IO.LoadFromFileDICOM( 'C:\im32982.dicom' );
ImageEnView1.IO.Params.DICOM_ContainsImage := False;
ImageEnView1.IO.SaveToFileDICOM( 'C:\im32982-Tags.dicom' );