TrackAdd

The TrackAdd function adds new frame to animation track

TrackAdd iTransp,iXDecl,iYDecl,iX,iY,iWidth,iHeight,iTime [,sDisp]

Parameters

iTransp
Specifies the transparent color in the frame. Minus 1 means there is not transparent color in this frame.

iXDecl
Specifies the X coordinate where the top left corner of the frame will be placed in animation.

iYDecl
Specifies the Y coordinate where the top left corner of the frame will be placed in animation.

iX
Specifies the X coordinate of the top left corner of the bounding rectangle in the source image to get the frame from.

iY
Specifies the Y coordinate of the top left corner of the bounding rectangle in the source image to get the frame from.

iWidth
Specifies the width of frame image.

iHeight
Specifies the height of frame image.

iTime
Specifies the delaying time for this frame.

sDisp
Optional. Specifies the disposal method for this frame. If omitted, the grame disposal information will not be send to aouput stream. The possible values are:
StringMeaning
"LEAVE" Do not dispose. The frame is to be left in place
"BACKGROUND" Restore to background color. The area used by the frame will be restored to the background
"PREVIOUS" Restore to previous frame.