#include "ltwrappr.h"

L_INT LBitmapList::GetNextItem(pLBitmap)

LBitmapBase * pLBitmap;

pointer to an LBitmapBase object

Gets the next item of the bitmap list object.




Pointer to an allocated bitmap object that will receive the next item of a bitmap list.



The function was successful.

< 1

An error occurred. Refer to Return Codes.


This function will retrieve the bitmap list item that succeeds the item at the current index, and increment the current index if successful. If there is no next item (the current index = the last item in the list) this function fills pLBitmap with the last item.

You can get the current index by calling LBitmapList::GetCurrentIndex.

The bitmap handle that this function gets and attaches to the passed LBitmapBase object is a copy of the bitmap handle stored internally in the list. If you modify the bitmap, you can update the class object's internal bitmap handle to reflect the changes by using the LBitmapList::SetItem function.

You should not free the bitmap. Instead, use LBitmapList::DeleteItems.

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

In order to use this function, you must first allocate an LBitmapBase object (or an object derived from LBitmapBase). Pass the address of the LBitmapBase object, and it will be filled with the item from the bitmap list.

Required DLLs and Libraries


For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.


Win32, x64.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Raster Imaging C++ Class Library Help