ImageGear for C and C++ on Linux v20.0 - Updated
API Reference Guide > MD Component API Reference > MD Component Macros Reference > MED_DCM_DS_TAG_MAKE

This macro takes a 16-bit Group Number and a 16-bit Element Number and returns a 32-bit Tag value.


Copy Code
      MED_DCM_DS_TAG_MAKE(gn, en);


gn Supply this with a valid DICOM Group Number.
en Supply this with a valid DICOM Element Number.

Return Value:

Returns the 32-bit Tag value from the 16-bit Group Number and 16-bit Element Number that you provide.

Supported Raster Image Formats:

This function does not process image pixels.

The image must have a DICOM DataSet attached to it. Use MED_DCM_DS_exists to check whether the image contains a DataSet.


Copy Code
AT_DCM_TAG Tag; Tag = MED_DCM_DS_TAG_MAKE(0x0010, 0x0021) /* Tag equals DCM_TAG_IssuerOfPatientID or 0x00100021 */


The returned Tag is compatible with the enumIGMedTag enumeration.

Is this page helpful?
Yes No
Thanks for your feedback.