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

This function sets the data of the item in the Part 10 header identified by part10_item.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI MED_DCM_DS_part10_set(
        const HIGEAR hIGear, 
        const AT_MODE part10_item, 
        const LPVOID lpData, 
        const AT_DCM_VL vl
);

Arguments:

Name Type Description
hIGear const HIGEAR HIGEAR handle to the image.
part10_item const AT_MODE Set this variable to the type of Part 10 item you would like to set. Use one of the constants defined in DCM.h that begin with DCM_PART10_ITEM_.
lpData const LPVOID A far VOID pointer to the data that you would like to store into the Part 10 item.
vl const AT_DCM_VL Set to the length of the Data Field, in bytes. 

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.

Return Value:

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