GETIMAGECALLBACK

#include "ltdic.h"

L_BOOL pEXT_CALLBACK YourFunction(nIndex, nCount, pUserData)

Called for each image that is loaded using L_DicomGetImageList.

Parameters

L_UINT32 nIndex

Zero-based index of the image to load.

L_UINT32 nCount

Total number of images to be loaded. This is the same value passed to the L_DicomGetImageList function.

L_VOID * pUserData

Void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the pUserData parameter of the L_DicomGetImageList function.)

Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.

Returns

Value Meaning
TRUE Continue loading.
FALSE Abort loading.

Comments

The L_DicomGetImageList function has two overload functions. GETIMAGECALLBACK is used with the version that has a callback.

Required DLLs and Libraries

Platforms

Win32, x64

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help