An extension method for converting a DicomTag to a DICOM readable string containing the corresponding hexadecimal representation.
public static string DicomTagToString(
this long dicomTag,
DicomTagToStringOptions options
)
public:
[ExtensionAttribute]
static String^ DicomTagToString(
Int64 dicomTag,
DicomTagToStringOptions^ options
)
dicomTag
A long representing a DICOM tag.
options
One or more flags DicomTagToStringOptions to specify additional formatting options.
A string containing the corresponding hexadecimal representation of the dicomTag.
DicomTagToString(long,DicomTagToStringOptions) is used to converting a DicomTag to a DICOM readable string containing the corresponding hexadecimal representation.
The DicomTagToStringOptions are used to specify additional formatting options.
using Leadtools.Dicom;
using Leadtools.Dicom.Common;
using Leadtools.Dicom.Common.Extensions;
using Leadtools;
using Leadtools.Dicom.Common.Linq.BasicDirectory;
using Leadtools.Dicom.Common.DataTypes;
using Leadtools.Codecs;
public void TestDicomTagToString()
{
// returns a DICOM readable string containing the hexadecimal representation
string result1 = DicomTag.PatientID.DicomTagToString();
// result1: 0010,0020
string result2 = DicomTag.PatientID.DicomTagToString(DicomTagToStringOptions.Comma | DicomTagToStringOptions.Parenthesis);
// result2: (0010,0020)
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.