L_DicomGetLayerIndex

#include "l_bitmap.h"

L_LTDIC_API L_UINT16 L_DicomGetLayerIndex(hDS, pszLayerName, pLayerIndex)

Retrieves the index of the layer with the specified name.

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 20.0.2019.9.20
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help