Removes a bitmap from the list, and lets you treat it as an individual bitmap.
L_LTKRN_API L_INT L_RemoveBitmapListItem(hList, uIndex, pBitmap)
Handle to the list of bitmaps.
Position of the bitmap in the list. Use zero-based indexing. For example, if there are 10 bitmaps in a list, the index of the last one is 9. When you remove a bitmap from a list, the indexes of other bitmaps change to accommodate the removal.
Pointer to the bitmap handle that you can use afterward to work with the individual bitmap.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
This function does not free the bitmap. If you want to remove a bitmap from a list and free the bitmap, you should use L_DeleteBitmapListItems.
You cannot use this function to update a bitmap list while it is being used in an animation playback.
Win32, x64, Linux.
This example removes even numbered bitmaps from a list and deletes them.
L_INT RemoveBitmapListItemExample(HBITMAPLIST hList)
BITMAPHANDLE TmpBitmap; /* Temporary bitmap for manipulating the list */
L_UINT i; /* Loop counter */
L_UINT uCount; /* Number of bitmaps in the list */
/* Remove even numbered bitmaps from the list and delete them */
nRet = L_GetBitmapListCount(hList, &uCount);
if(nRet != SUCCESS)
for (i = 0; i <= uCount; i += 2)
nRet = L_RemoveBitmapListItem(hList, i, &TmpBitmap);
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries