ArgbEvaluator
public class ArgbEvaluator
extends Object
implements TypeEvaluator
此评估器可用于执行表示ARGB颜色的整数值之间的类型插值。
Summary
Public constructors
ArgbEvaluator
ArgbEvaluator ()
Public methods
evaluate
Object evaluate (float fraction,
Object startValue,
Object endValue)
此函数返回给定整数的颜色的中间值,该整数代表32位整数的四个字节中的起始值和结束值。 每个通道分别进行线性内插,并将得到的计算值重新组合为返回值。
Parameters |
fraction |
float : 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 |
Object |
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. |