ImageEn, unit iexBitmaps

TIEDicomTags.SetTagNumeric

TIEDicomTags.SetTagNumeric


Declaration

procedure SetTagNumeric(Group, Element: Word; Value: double; ReplaceIfExist: Boolean = True);


Description

Adds or replaces a numeric tag.
If the tag does not exist, it will be added. If the tag already exists it will be overwritten if ReplaceIfExist is true, or a second instance of the tag added if ReplaceIfExist = False.
Supported tag types: dvFD, dvSS, dvUS, dvFL, dvSL, dvUL

Note: An exception is raised if the tag does not support a numeric value.


Example

// Add a "Priority" tag to the current Dicom file (or replace tag if it already exists)
ImageEnView1.IO.Params.DICOM_Tags.DICOM_Tags.SetTagNumeric( $0000, $0700, 7 );