AddFrame

The AddFrame method adds one or several new frame(s) to specified track.

AddFrame Track,Amount,Delay[,InsertAt]

Parameters

Track
Specifies the zero-based track number to add a frame(s) to.
Amount
Specifies amount of new frames.
Delay
Specifies time of delaying for new frames, in hundredths of second.
InsertAt
Optional. Specifies time of delaying for new frames, in hundredths of second. Default value just adds new frame(s) after last one, into the end of the track.

Return value

The method returns new total amount of frames on the specified track.

Notes

New frame(s) inherits transparent color, width and height from the specified track
Example
The code sample fills animation track from file and inserts one frame into first position on the animation track.

Set ani = CreateObject("shotgraph.gifanimator")
ani.Read filepath
ani.AddFrame 0,1,50,0