TIEDicomTags.GetTagString
Declaration
function GetTagString(Index: integer): String; overload;
function GetTagString(Group, Element: Word): String; overload;
Description
Returns a DICOM tag as a string. You can specify it by Group/Element or its
index. You can view a list of tags at:
Dicom Tag ListSupported
tag types: dvCS, dvAS, dvAE, dvDA, dvDS, dvDT, dvIS, dvLO, dvLT, dvPN, dvSH, dvST, dvTM, dvUI, dvUT
Note: If
CharacterSet is "ISO_IR 192" then the result will be treated as a UTF-8 string and may contain non-ASCII characters
| Demos\InputOutput\Dicom\Dicom.dpr |
ImageType := ImageEnView1.IO.Params.DICOM_Tags.GetTagString( $0008, $0008 );
PatientName := ImageEnView1.IO.Params.DICOM_Tags.GetTagString( 0010, $0010 );
// Alternatively
ImageType := ImageEnView1.IO.Params.DICOM_Tags.GetTagString( ImageEnView1.IO.Params.DICOM_Tags.IndexOf( $0008, $0008 ));
PatientName := ImageEnView1.IO.Params.DICOM_Tags.GetTagString( ImageEnView1.IO.Params.DICOM_Tags.IndexOf( $0010, $0010 ));
See Also
◼GetTagNumeric◼IEGetDicomTagDescription◼WriteTo