VectSharp 2.6.1
A light library for C# vector graphics
|
Describes an animation constituted by a number of frames and transitions between them. More...
Public Member Functions | |
Animation (double width, double height, double linearisationResolution) | |
Creates a new Animation with the specified width, height and linearisation resolution. More... | |
Page | GetFrameAtAbsolute (double time) |
Obtains the (interpolated) frame that should be displayed after the specified time has passed since the start of the animation. More... | |
Page | GetFrameAtRelative (double relativeTime) |
Obtains the (interpolated) frame that should be displayed after the specified relative time has passed since the start of the animation. More... | |
void | AddFrame (Frame frame, Transition transition=null) |
Adds a new frame to the animation, with the specified transition. More... | |
void | RemoveLastFrame () |
Removes the last frame from the animation (and the corresponding transition). More... | |
Properties | |
ImmutableList< Frame > | Frames = ImmutableList<Frame>.Empty [get] |
The key frames of the animation. More... | |
ImmutableList< Transition > | Transitions = ImmutableList<Transition>.Empty [get] |
The transitions between successive frames of the animation. This array always contains one fewer element than Frames. More... | |
double | Width [get, set] |
The width of the animation. More... | |
double | Height [get, set] |
The height of the animation. More... | |
Colour | Background = Colour.FromRgba(255, 255, 255, 0) [get, set] |
The background colour of the animation. More... | |
double | LinearisationResolution [get] |
The absolute length between successive samples to use when linearising GraphicsPaths. More... | |
double | Duration = 0 [get] |
The total duration of the animation (not including the number of repeats). More... | |
int | RepeatCount = 0 [get, set] |
The number of times that the animation should repeat. More... | |
Describes an animation constituted by a number of frames and transitions between them.
Definition at line 1410 of file Animation.cs.
VectSharp.Animation.Animation | ( | double | width, |
double | height, | ||
double | linearisationResolution | ||
) |
Creates a new Animation with the specified width, height and linearisation resolution.
width | The width of the animation. |
height | The height of the animation. |
linearisationResolution | The absolute length between successive samples to use when linearising GraphicsPaths. |
Definition at line 1461 of file Animation.cs.
void VectSharp.Animation.AddFrame | ( | Frame | frame, |
Transition | transition = null |
||
) |
Adds a new frame to the animation, with the specified transition.
frame | The new frame to add to the animation. |
transition | The transition that should be applied between the previous frame and the new frame. This parameter is ignored for the first frame. If this is null , the animation will abruptly change from one frame to the next. |
Definition at line 1586 of file Animation.cs.
Page VectSharp.Animation.GetFrameAtAbsolute | ( | double | time | ) |
Obtains the (interpolated) frame that should be displayed after the specified time has passed since the start of the animation.
time | The time since the start of the animation (in milliseconds). |
Definition at line 1473 of file Animation.cs.
Page VectSharp.Animation.GetFrameAtRelative | ( | double | relativeTime | ) |
Obtains the (interpolated) frame that should be displayed after the specified relative time has passed since the start of the animation.
relativeTime | The time since the start of the animation (ranging from 0 for the start of the animation, to 1 for the end of the animation). |
Definition at line 1576 of file Animation.cs.
void VectSharp.Animation.RemoveLastFrame | ( | ) |
Removes the last frame from the animation (and the corresponding transition).
ArgumentOutOfRangeException | Thrown if there are no frames in the animation. |
Definition at line 1608 of file Animation.cs.
|
getset |
The background colour of the animation.
Definition at line 1438 of file Animation.cs.
|
get |
The total duration of the animation (not including the number of repeats).
Definition at line 1448 of file Animation.cs.
The key frames of the animation.
Definition at line 1415 of file Animation.cs.
|
getset |
The height of the animation.
Definition at line 1433 of file Animation.cs.
|
get |
The absolute length between successive samples to use when linearising GraphicsPaths.
Definition at line 1443 of file Animation.cs.
|
getset |
The number of times that the animation should repeat.
Definition at line 1453 of file Animation.cs.
|
get |
The transitions between successive frames of the animation. This array always contains one fewer element than Frames.
Definition at line 1420 of file Animation.cs.
|
getset |
The width of the animation.
Definition at line 1428 of file Animation.cs.