StillGif

The StillGif method writes content of target track to animated gif.

StillGif Track,Frame,FileName

Parameters

Track
Zero-based track number. Negative value means the target animation track.
Frame
Zero-based frame number.
FileName
Specifies path to file. New file will be created or, if file already exists, it will be overwritten. If you specify an empty string instead of file name, the safearray containing gif image data will be created and returned.


Return value

The method returns safearray containing gif image data if you specify an empty string as a file name parameter.

Note

This method allows you to extract any frame from existing or new assembled animation.
Example
This code reads animated gif and extracts the second frame (frame #1):

Set ani = CreateObject("ShotGraph.GifAnimator")
ani.Read filename
ani.StillGif 0,1,new_filename