ToolTipsFactory

Object Model - The Animation class - ReplaceFrame 

Remove the AnimationFrame from the specified position in the frames-list. 

[Visual Basic]
Public Sub ReplaceFrame(ByVal FrameNr As Integer,ByVal Frame As AnimationFrame)
[C#]
public void ReplaceFrame(int frameNr, AnimationFrame frame);

Parameters

FrameNr

    The zero-based index of the AnimationFrame to be replaced.

Frame

    The new AnimationFrame.

Description

This method replaces the AnimationFrame with the specified FrameNr with the new Frame.

'Create a new Animation...

Dim myAnimation As Animation = New Animation

'Load an existing Animation from file

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

...

'Lets replace the frame in the middle of the movie

'with a new one...

Dim myMacAd As Image = LoadMacintoshAd()

Dim newFrame As AnimationFrame

Dim Length As Integer = myAnimation.Frames.Count

newFrame = New AnimationFrame(myMacAd)

newFrame.DisplayTime = 60000

myAnimation.ReplaceFrame(CInt(Length / 2), newFrame)

...