Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS DICOM C DLL Help

L_DicomGetLayerCount

Show in webframe

#include "l_bitmap.h"

L_LTDIC_API L_UINT16 L_DicomGetLayerCount(hDS, pCount)

HDICOMDS hDS;

/* a DICOM handle */

L_UINT * pCount;

/* pointer to a variable which will be updated with the layer count*/

Gets the number of the Graphic Layers.

Parameter

Description

hDS

A DICOM handle.

pCount

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

Returns

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

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

Platforms

Win32, x64, Linux.

See Also

Functions:

L_DicomGetLayerInfo, L_DicomSetLayerInfo, L_DicomRemoveLayerByIndex, L_DicomRemoveLayerByName, L_DicomRemoveAllLayers, L_DicomGetLayerIndex, L_DicomGetLayerGraphicObjectCount, L_DicomRemoveLayerGraphicObjects, L_DicomGetLayerTextObjectCount, L_DicomRemoveLayerTextObjects, L_DicomGetLayerElementByIndex, L_DicomGetLayerElementByName

Topics:

Working with DICOM Annotations

 

Dicom Annotations: Layers

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;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.