ImageEn, unit iexMetaHelpers |
|
TIOParamsHelper.DICOM_WriteToStrings
Declaration
function TIOParamsHelper.DICOM_WriteToStrings(Dest : TStrings; TagInclude: TIEDicomInclude) : Boolean;
Description
Fills a TStrings object with the Dicom properties of the current image in the format:
Description: Value
TagInclude allows you to filter the types of tags returned.
Result is true if the image has any Dicom fields.
Examples
// Output the Dicom properties of the current image to a TMemo (all types)
ImageEnView1.IO.DICOM_WriteToStrings( memo1.Lines, [ diProprietary, diDeprecated, diChildTags, diUnknown ] );
// Export the dicom list of the current image to a file (exclude deprecated and unknown tags)
aStringList := TStringList.create;
ImageEnView1.IO.Params.DICOM_WriteToStrings( aStringList, [ diProprietary, diChildTags ] );
aStringList.SaveToFile('D:\DicomList.txt');
aStringList.Free;