LDicomDS::GetLayerCount

#include "Ltdic.h"

L_UINT16 LDicomDS::GetLayerCount(pCount)

Gets the number of the Graphic Layers.

Parameters

L_UINT * pCount

Pointer to a variable which will be updated with the layer count.

Returns

Value Meaning
0 SUCCESS
>0 An error occurred. Refer to Return Codes.

Comments

This function will return the number of layers inside a DICOM dataset by counting the number of items under the "Graphic Layer Sequence" (0070,0060).

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

L_INT LDicomDS_GetLayerCountExample(LDicomDS& PresStateDS)  
{ 
   L_INT    nRet; 
   L_TCHAR  szText[256] = TEXT(""); 
   L_UINT   uCount; 
 
   nRet = PresStateDS.GetLayerCount(&uCount);  
 
   if (nRet == DICOM_SUCCESS)  
   { 
      wsprintf(szText, TEXT("Number of layers in the Dataset is: %i"), uCount);  
      MessageBox( NULL,  
                  szText,  
                  TEXT("Note"),  
                  MB_OK);  
   } 
 
   return DICOM_SUCCESS; 
} 
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.