L_DeleteBitmapListItems

#include "l_bitmap.h"

L_LTKRN_API L_INT L_DeleteBitmapListItems(hList, uIndex, uCount)

Deletes a set of bitmaps from a list. This removes the bitmaps from the specified list and frees the bitmaps.

Parameters

HBITMAPLIST hList

Handle to the list of bitmaps.

L_UINT uIndex

Index of the first bitmap to delete.

L_UINT uCount

Number of bitmaps to delete. You can specify (L_UINT) -1 to delete to the end of the list.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

You cannot use this function to update a bitmap list while it is being used in an animation playback.

Required DLLs and Libraries

Platforms

Win32, x64, Linux.

See Also

Functions

Topics

Example

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 Version 20.0.2019.9.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help