Class AnimationValueColorCalculator
Provides color animation calculations with smooth ARGB component interpolation.
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class AnimationValueColorCalculator : AnimationValueCalculator
Constructors
AnimationValueColorCalculator()
Declaration
public AnimationValueColorCalculator()
Properties
AssociatedType
Gets the type associated with this calculator.
Declaration
public override Type AssociatedType { get; }
Property Value
System.Type
The System.Drawing.Color type. |
Overrides
Methods
CalculateAnimatedValue(Object, Object, Object, Object, Int32, Int32, EasingCalculator)
Calculates the animated color value by interpolating ARGB components.
Declaration
public override object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)
Parameters
System.Object
startValue
The starting color value. |
System.Object
endValue
The ending color value. |
System.Object
currValue
The current color value. |
System.Object
step
The color animation step. |
System.Int32
currFrameNum
The current frame number. |
System.Int32
totalFrameNum
The total number of frames. |
EasingCalculator
calc
The easing calculator. |
Returns
System.Object
The interpolated color for the current frame. |
Overrides
CalculateAnimationEndValue(Object, Object, Int32)
Calculates the end color value based on start value and animation step.
Declaration
public override object CalculateAnimationEndValue(object animationStartValue, object animationStep, int numFrames)
Parameters
System.Object
animationStartValue
The starting color. |
System.Object
animationStep
The color animation step. |
System.Int32
numFrames
The number of animation frames. |
Returns
System.Object
The calculated end color value. |
Overrides
CalculateAnimationStep(Object, Object, Int32)
Calculates the animation step needed to transition between two colors.
Declaration
public override object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)
Parameters
System.Object
animationStartValue
The starting color. |
System.Object
animationEndValue
The ending color. |
System.Int32
numFrames
The number of animation frames. |
Returns
System.Object
The calculated color animation step. |
Overrides
CalculateInversedStep(Object)
Calculates the inverse of a color animation step.
Declaration
public override object CalculateInversedStep(object step)
Parameters
System.Object
step
The color animation step to invert. |
Returns
System.Object
The inverted color animation step. |