ArgbEvaluator.Evaluate(Single, Object, Object) Method

Definition

This function returns the calculated in-between value for a color given integers that represent the start and end values in the four bytes of the 32-bit int.

[Android.Runtime.Register("evaluate", "(FLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetEvaluate_FLjava_lang_Object_Ljava_lang_Object_Handler")]
public virtual Java.Lang.Object? Evaluate (float fraction, Java.Lang.Object? startValue, Java.Lang.Object? endValue);
[<Android.Runtime.Register("evaluate", "(FLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetEvaluate_FLjava_lang_Object_Ljava_lang_Object_Handler")>]
abstract member Evaluate : single * Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object
override this.Evaluate : single * Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object

Parameters

fraction
Single

The fraction from the starting to the ending values

startValue
Object

A 32-bit int value representing colors in the separate bytes of the parameter

endValue
Object

A 32-bit int value representing colors in the separate bytes of the parameter

Returns

A value that is calculated to be the linearly interpolated result, derived by separating the start and end values into separate color channels and interpolating each one separately, recombining the resulting values in the same way.

Implements

Attributes

Remarks

This function returns the calculated in-between value for a color given integers that represent the start and end values in the four bytes of the 32-bit int. Each channel is separately linearly interpolated and the resulting calculated values are recombined into the return value.

Java documentation for android.animation.ArgbEvaluator.evaluate(float, java.lang.Object, java.lang.Object).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to