Animations.CreateAnimation Method (List(Int32), Single, Int32)
collapse_all
expand_all
collapse_allexpand_alldropdowndropdownHovercopycodecopycodeHighlight

collapse_all Collapse AllExpand All     dropdown Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

[TCheckBoxFormControlObj]C#

[TCheckBoxFormControlObj]Visual Basic

[TCheckBoxFormControlObj]
Visual C++
DPSF API Documentation

Animations

.
.
::
..CreateAnimation Method (List<(Of <(<'Int32>)>)>, Single, Int32)

gradient

Creates a new Animation and returns the Animation's unique ID.

NOTE: Returns -1 if an invalid Picture ID was specified in the PictureRotationOrder.

NOTE: Be sure to Create the Pictures before creating the Animation.

Namespace: DPSF

Assembly: DPSF (in DPSF.dll) Version: 2.5.0.0

collapse_allSyntax

C#

public int CreateAnimation(

 List<intcPictureRotationOrder,

 float fPictureRotationTime,

 int iNumberOfTimesToPlay

)

Visual Basic

Public Function CreateAnimation (

 cPictureRotationOrder As List(Of Integer),

 fPictureRotationTime As Single,

 iNumberOfTimesToPlay As Integer

As Integer

Visual C++

public:

int CreateAnimation(

 List<int>^ cPictureRotationOrder,

 float fPictureRotationTime,

 int iNumberOfTimesToPlay

)

Parameters

cPictureRotationOrder

Type: System.Collections.Generic..::..List<(Of <(<'Int32>)>)>

A List of Picture IDs that specifies the Order of Pictures to Rotate through in order to produce the Animation. A single Picture ID can be used many times.

fPictureRotationTime

Type: System..::..Single

How long (in seconds) to wait before switching to the next Picture in the Picture Rotation Order (i.e. The frame-rate of the Animation)

iNumberOfTimesToPlay

Type: System..::..Int32

The number of times this Animation should be played (it replays when the end of the Animation is reached). Specify a value of zero to have the Animation repeat forever

Return Value

Type: Int32

Returns the new Animation's unique ID.

collapse_allSee Also

Animations Class

Animations Members

CreateAnimation Overload

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com