LAnimationWindow
Description
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 and AVI 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::UnlockSupport.
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. You can also create a list of bitmaps from an AVI file, but this is a read-only feature.
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.
Required Libraries
You must load all required libraries using LBase::LoadLibraries before using the classes.
LTKRN For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. For a listing of the exact LTDLGXXX DLLs and Libraries needed, based on the toolkit version, refer to Common Dialog Files To Be Included With Your Application. |
See Also