Deletes a set of bitmaps from a list. This removes the bitmaps from the specified list and frees the bitmaps.
#include "l_bitmap.h"
L_LTKRN_API L_INT L_DeleteBitmapListItems(hList, uIndex, uCount)
Handle to the list of bitmaps.
Index of the first bitmap to delete.
Number of bitmaps to delete. You can specify (L_UINT) -1 to delete to the end of the list.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
You cannot use this function to update a bitmap list while it is being used in an animation playback.
Win32, x64, Linux.
This example deletes even numbered bitmaps from a list.
L_INT DeleteBitmapListItemsExample(HBITMAPLIST hList)
{
L_INT nRet;
L_UINT i; /* Loop counter */
L_UINT uCount; /* Number of bitmaps in the list */
/* Delete even numbered bitmaps from the list */
nRet = L_GetBitmapListCount(hList, &uCount);
if(nRet != SUCCESS)
return nRet;
for (i = 0; i <= uCount/2; i ++)
{
nRet = L_DeleteBitmapListItems(hList, i, 1);
if(nRet != SUCCESS)
return nRet;
}
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