L_DicomGetLayerIndex

Summary

Retrieves the index of the layer with the specified name.

Syntax

#include "ltdic.h"

L_LTDIC_API L_UINT16 L_DicomGetLayerIndex(hDS, pszLayerName, pLayerIndex)

Parameters

HDICOMDS hDS

A DICOM handle.

L_TCHAR * pszLayerName

Name of the layer.

L_INT * pLayerIndex

Variable to be updated with layer index

Returns

Value Meaning
DICOM_SUCCESS The function was successful.
>0 An error occurred. Refer to Return Codes.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

L_INT DicomGetLayerIndexExample(HDICOMDS hPresStateDS, L_TCHAR* pszLayerName) 
{ 
   L_TCHAR szText[256] = TEXT("\0"); 
   L_INT uIndex; 
 
   L_UINT16 nRet = L_DicomGetLayerIndex(hPresStateDS,pszLayerName, &uIndex); 
   if(nRet == DICOM_SUCCESS) 
   { 
      wsprintf(szText, TEXT("Index of the layer in the IOD is: %i"), uIndex); 
      MessageBox( NULL,  
                  szText,  
                  TEXT("Note"),  
                  MB_OK); 
      return DICOM_SUCCESS; 
   } 
   return nRet; 
} 
Help Version 23.0.2024.7.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.