ApplyImageGadgetAnimation(...)
This function will apply an animation to an already created ImageGadget control.
In order for this function to work properly, you must already create the ImageGadget, and have
the Image Strip loaded in memory.
Command Reference
|
ApplyImageGadgetAnimation(#ImageGadget, #Image [, FrameWidth, FrameHeight [, FPS]])
|
- The handle of the already create ImageGadget.
|
#Image
|
- The handle of the already loaded Image.
|
FrameWidth
|
- The width of the individual frames, in pixels. (See Below)
|
FrameHeight
|
- The height of the individual frames, in pixels. (See Below)
|
FPS
|
- The frequency of the animation cycle per second.
|
|
FrameWidth & FrameHeight
If you do not define a FrameWidth, or FrameHeight, the library will use a simple method to
automatically calculating them.
It will assume that the width and height of the frames are the same, so it will set the width to be
the same as the image height.