L_DicomGetLayerCount

Summary

Gets the number of the Graphic Layers.

Syntax

#include "ltdic.h"

L_LTDIC_API L_UINT16 L_DicomGetLayerCount(hDS, pCount)

Parameters

HDICOMDS hDS

A DICOM handle.

L_UINT * pCount

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

Returns

Value Meaning
DICOM_SUCCESS The function was successful.
>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, Linux.

See Also

Functions

Topics

Example

L_INT DicomGetLayerCountExample(HDICOMDS hPresStateDS) 
{ 
   L_TCHAR szText[256] = TEXT("\0"); 
   L_UINT uCount; 
   L_UINT16 nRet; 
 
   nRet = L_DicomGetLayerCount(hPresStateDS,&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 nRet; 
} 
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.