LAnimationWindow::SetDelay

Summary

Sets the animation playback delay for the bitmap list item.

Syntax

#include "ltwrappr.h"

L_INT LAnimationWindow::SetDelay(nDelay, nIndex=ANIM_ALL_ITEMS)

Parameters

L_INT nDelay

Delay in milliseconds (ms) for the bitmap.

L_UINT nIndex

Position of bitmap list item. Possible values are:

Value Meaning
ANIM_ALL_ITEMS [-1] Set the delay for all items in the bitmap list
>=0 Set the delay only for the specified item

Returns

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

Comments

This function sets the animation playback delay in milliseconds (ms) for the bitmap item at position nIndex inside the bitmaplist. If you want to set the same delay for all items, set nIndex = ANIM_ALL_ITEMS.

Positioning within the list is zero-based.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

For an example, refer to LAnimationWindow::GetDelay.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.