Class
AnimationValueColorCalculator

Provides color animation calculations with smooth ARGB component interpolation.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class AnimationValueColorCalculator : AnimationValueCalculator

Inheritance: objectAnimationValueCalculatorAnimationValueColorCalculator

Inherited Members AnimationValueCalculator.ConvertAnimationStepToString(object)AnimationValueCalculator.ConvertToAnimationStepFromString(string)AnimationValueCalculator.CalculateIntStep(int, int, int)AnimationValueCalculator.CalculateIntStep(int, int, int, int, int)AnimationValueCalculator.CalculateFloatStep(float, float, int)AnimationValueCalculator.CalculateFloatStep(float, float, float, float, float)AnimationValueCalculator.CalculateDoubleStep(double, double, int)AnimationValueCalculator.CalculateDoubleStep(double, double, double, double, double)AnimationValueCalculator.CalculateFloatEndValue(float, float, int)AnimationValueCalculator.CalculateFloatEndValue(float, float, int, float, float)AnimationValueCalculator.CalculateDoubleEndValue(double, double, int)AnimationValueCalculator.CalculateDoubleEndValue(double, double, int, double, double)AnimationValueCalculator.CalculateIntEndValue(int, int, int)AnimationValueCalculator.CalculateIntEndValue(int, int, int, int, int)

Constructors

AnimationValueColorCalculator()

Declaration

cs-api-definition
public AnimationValueColorCalculator()

Properties

AssociatedType

Gets the type associated with this calculator.

Declaration

cs-api-definition
public override Type AssociatedType { get; }

Property Value

Type

The Color type.

Overrides AnimationValueCalculator.AssociatedType

Methods

CalculateAnimatedValue(object, object, object, object, int, int, EasingCalculator)

Calculates the animated color value by interpolating ARGB components.

Declaration

cs-api-definition
public override object CalculateAnimatedValue(object startValue, object endValue, object currValue, object step, int currFrameNum, int totalFrameNum, EasingCalculator calc)

Parameters

startValue

object

The starting color value.

endValue

object

The ending color value.

currValue

object

The current color value.

step

object

The color animation step.

currFrameNum

int

The current frame number.

totalFrameNum

int

The total number of frames.

calc

EasingCalculator

The easing calculator.

Returns

object

The interpolated color for the current frame.

Overrides AnimationValueCalculator.CalculateAnimatedValue(object, object, object, object, int, int, EasingCalculator)

CalculateAnimationEndValue(object, object, int)

Calculates the end color value based on start value and animation step.

Declaration

cs-api-definition
public override object CalculateAnimationEndValue(object animationStartValue, object animationStep, int numFrames)

Parameters

animationStartValue

object

The starting color.

animationStep

object

The color animation step.

numFrames

int

The number of animation frames.

Returns

object

The calculated end color value.

Overrides AnimationValueCalculator.CalculateAnimationEndValue(object, object, int)

CalculateAnimationStep(object, object, int)

Calculates the animation step needed to transition between two colors.

Declaration

cs-api-definition
public override object CalculateAnimationStep(object animationStartValue, object animationEndValue, int numFrames)

Parameters

animationStartValue

object

The starting color.

animationEndValue

object

The ending color.

numFrames

int

The number of animation frames.

Returns

object

The calculated color animation step.

Overrides AnimationValueCalculator.CalculateAnimationStep(object, object, int)

CalculateInversedStep(object)

Calculates the inverse of a color animation step.

Declaration

cs-api-definition
public override object CalculateInversedStep(object step)

Parameters

step

object

The color animation step to invert.

Returns

object

The inverted color animation step.

Overrides AnimationValueCalculator.CalculateInversedStep(object)