Namespace: BitMiracle.Docotic.Pdf
public enum PdfRichMediaAnimationStyle
Public Enumeration PdfRichMediaAnimationStyle
Member name | Value | Description | |
---|---|---|---|
None | 0 | Disables keyframe animations. This value is useful for documents that are intended to drive animations through an alternate means, such as JavaScript. | |
Linear | 1 | Drives keyframe animations linearly from beginning to end. This animation style results in a repetitive playthrough of the animation, such as in a walking motion. | |
Oscillating | 2 | Drives keyframe animations oscillating along their time range. This animation style results in a back-and-forth playing of the animation, such as exploding or collapsing parts. |
Linear animations are defined by the following formulas:
t = (m * (ta - t0) + r0) % (r1 - r0) p = (r1 - r0) / m
Oscillating animations are defined by the following formulas:
t = 0.5 * (r1 - r0) * (1 - cos(m * (ta - t0))) + r0 p = 2 * pi / m
The formulas above use the following variables: