ToolTipsFactory |
![]()
Gets a specific AnimationFrame.
[Visual Basic] Public Function GetFrame(ByVal FrameNr As Integer) As AnimationFrame
[C#] public AnimationFrame GetFrame(int frameNr);
Parameters
FrameNr
The index zero-based index of the AnimationFrame to be retrieved.
Return value
The requested AnimationFrame. Nothing, if the requested frame does not exist.
Description
This function is used to get access to a specific AnimationFrame of the Animation-object. This reference can be used to access the members of the AnimationFrame-object.
'Create a new Animation...
Dim myAnimation As Animation = New Animation
'Load an existing Animation from file
myAnimation.Load("C:\Temp\JurassicShark.afx")
'Lets replace a frame in the middle of the movie with a little
'advertisement (displayed for 1 minute)...
Dim myAd As Image = LoadAd()
Dim targetFrame As AnimationFrame
targetFrame = myAnimation.GetFrame(81000)
targetFrame.FrameImage = myAd
targetFrame.DisplayTime = 60000