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

Returns the index of the Current Data Element in the Data Set associated with the current HIGEAR image.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI MED_DCM_DS_curr_index_get(
       const HIGEAR hIGear,
       LPDWORD lpIndex
);

Arguments:

Name Type Description
hIGear const HIGEAR The HIGEAR handle to the image being queried.
lpIndex LPDWORD A far pointer of type DWORD that returns with the index of the Current Data Element.

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 function indexes through all levels of the Data Set. The index of the first Data Element in the table is 0.

To move to a specific index and make it the Current Data Element, use MED_DCM_DS_move_index().