#include "l_bitmap.h"
L_LTKRN_API L_INT L_RemoveBitmapListItem(hList, uIndex, pBitmap)
Removes a bitmap from the list, and lets you treat it as an individual bitmap.
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.
| Value | Meaning |
|---|---|
| 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.
Required DLLs and Libraries
Win32, x64, Linux.
This example removes even numbered bitmaps from a list and deletes them.
L_INT RemoveBitmapListItemExample(HBITMAPLIST hList){L_INT nRet;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)return nRet;for (i = 0; i <= uCount; i += 2){nRet = L_RemoveBitmapListItem(hList, i, &TmpBitmap);L_FreeBitmap(&TmpBitmap);}return SUCCESS;}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
