ImageGear for C and C++ on Windows v19.4 - Updated
MED_DCM_DS_TS_set
API Reference Guide > MD Component API Reference > MD Component Functions Reference > Data Set Functions > MED_DCM_DS_TS_set

This function sets the Transfer Syntax value in the Part 10 Header for "Transfer Syntax UID" Data Element (0002,0010).

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI MED_DCM_DS_TS_set(
        HIGEAR hIGear, 
        const AT_MODE Transfer_syntax
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle of the image.
Transfer_syntax const AT_MODE Set to the type of transfer syntax that you would like to store in the Transfer Syntax field of the Part 10 header.

Return Value:

Returns the number of ImageGear errors that occurred during the function call.

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.

Remarks:

This value overrides that set by MED_DCM_DS_create() function.

Transfer_syntax must be set to one of the following supported Transfer Syntax constants: