ToolTipsFactory

Object Model - The Animation class - InsertFrame

Insert an AnimationFrame at a specified position in the frames-list of the Animation

[Visual Basic]
Public Sub InsertFrame(ByVal Frame As AnimationFrame, Pos As Integer)
[C#]
public void InsertFrame(AnimationFrame frame, int pos);

Parameters

Frame

    The AnimationFrame to insert.

Pos

The position in the zero-based sequence of AnimationFrames, where Frame should be inserted.

Description

This method is used to insert an AnimationFrame into the Animation-object at the specified position (Pos) in the frames-sequence.

 

'Create a new Animation...

Dim myAnimation As Animation = New Animation

'Load an existing Animation from file

myAnimation.Load("C:\Temp\GoneWithTheWindows.afx")

'Lets inject a little advertisement (1 minute duration) into the 

'middle of the movie...

Dim myMacAd As Image = LoadMacintoshAd()

Dim targetFrame As AnimationFrame

targetFrame = myAnimation.GetFrameByIndex(1000)

targetFrame.FrameImage = myMacAd

targetFrame.DisplayTime = 60000