Parameters
- ImageID
- GdPicture image identifier. The DICOM image.
- TagIdx
- The tag index. Must be a value in the range 0 ; DicomGetTagsCount() -1.
Return Value
The description of the specified tag.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging()) { int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.dcm", false); // Write in a report all the tags available within the file. StringBuilder report = new StringBuilder(); int tagCount = gdpictureImaging.DicomGetTagsCount(imageID); for (int tagNo = 1; tagNo <= tagCount; tagNo++) { string tagDescription = gdpictureImaging.DicomGetTagDescription(imageID, tagNo); string tagValue = gdpictureImaging.DicomGetTagValue(imageID, tagNo); report.AppendLine(tagDescription.ToString() + " " + tagValue.ToString()); } gdpictureImaging.ReleaseGdPictureImage(imageID); MessageBox.Show(report.ToString(), "Tags", MessageBoxButtons.OK, MessageBoxIcon.Information); }