#include "l_bitmap.h"
L_LTDIS_API L_INT L_CreatePlayback(phPlayback, pBitmap, hList)
Creates an animation playback object and gets a handle for managing the playback.
Address of the HPLAYBACK variable that you can use afterward as the playback handle.
Pointer to the bitmap handle that references the target bitmap.
A bitmap list containing images to be played. The list can be created using L_CreateBitmapList and related functions. You can also pass NULL in this parameter to let the function create an empty list.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
The target bitmap for the playback must be allocated before calling this function.
If you pass NULL in the hList
parameter, you can use the L_AppendPlayback function to add bitmaps to the list during the playback. This is useful in the FILEREADCALLBACK function if you want to play an animated file as it is being loaded. If you need to reference the list after the playback, you can pass the address of an HBITMAPLIST variable when you call the L_DestroyPlayback function.
Required DLLs and Libraries
Win32, x64, Linux.
For an example, refer to L_ProcessPlayback.
For complete sample code, refer to the CHILD.C module of the DEMO
example.
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