The LAnimationWindow class is derived from the LBitmapWindow class, and extends it by adding LEAD Animation functionality. LBitmapWindow controls bitmap settings, loading, saving, rotation, zooming and scrolling, whereas the LAnimationWindow class adds a playback mechanism for bitmap lists (For more information about bitmap lists and animation playbacks, see LBitmapList and LPlayBack). LAnimationWindow can be used to playback animated GIF files, as well as any LEAD bitmap list. The class maintains an internal bitmap list to keep track of the loaded bitmaps. You must unlock support for GIF files. For more information on unlocking GIF support, see LSettings::IsSupportLocked.
GIF files are commonly used for small, animated images in applications. These are multipage files, and animation is achieved by processing the list of images. (This is not the same as AVI or other full-motion video formats.)
LEADTOOLS lets you load a multipage file into a list of bitmaps; then create and play an animation playback sequence using the list. With the paint-while-load feature, you can also play the animation while the list is being loaded.
LEADTOOLS takes advantage of the special animation features in GIF files, such as using one palette for the whole list of bitmaps. But, you can create, play, and save animations in any multipage format, including GIF, TIFF, and PCX.
Using command notification messages, the LAnimationWindow object can be used in a manner similar to standard Windows controls for dialogs. By overriding the virtual functions provided by LAnimationWindow and the base class LBitmapWindow, you can use LAnimationWindow objects as a regular window, which handles most messages for you. For more information on the two ways in which LBitmapWindow objects can be used, refer to LAnimationWindow:Window vs Control.
You must load all required libraries using LBase::LoadLibraries before using the classes.
Class Members |
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