LoadAnimFrame(id, frame, anim$[, table])
id. The animation file is specified by the string anim$.
The frame argument specifies which frame to load. If you want
to load the last frame, set frame to -1.
The fourth argument is optional. It is a table that can be used to set further options for the loading operation. The following fields of the table can be used:
Transparency:
LoadAlpha:True if the alpha channel of the anim frame
shall be loaded, too. Please note that not all animations have
an alpha channel and that not all animation formats are capable
of storing alpha channel information. This field defaults to False.
Loader:
Adapter:
LoadTransparency:True, the monochrome transparency of the anim frame will
be loaded. Please note that this tag is specifically designed for monochrome
transparency channels, i.e. a transparent pen in a palette-based anim. If
you want to load the alphachannel of an anim, set the LoadAlpha tag to
True. This tag defaults to False. (V6.0)
UserTags:
Please note that the Transparency, LoadTransparency and LoadAlpha fields are mutually
exclusive. An anim frame can only have one transparency setting!
See LoadAnim for details on supported anim formats.
LoadAnimFrame(1, 5, "Animations/HugeAnim.gif") DisplayBrushFX(1, #CENTER, #CENTER, #CROSSFADE)The above code loads frame 5 of the animation "Animations/HugeAnim.gif" into brush 1 and crossfades brush 1 onto the display.