ComponentOne Bitmap for UWP
LerpRef Method (ColorF)

C1.UWP.DX Assembly > C1.Util.DX Namespace > ColorF Structure : LerpRef Method
The linear interpolation of the two colors.
Start color.
End color.
Value between 0 and 1 indicating the weight of end.
Performs a linear interpolation between two colors.
Syntax
'Declaration
 
Public Shared Sub LerpRef( _
   ByRef result As ColorF, _
   ByRef start As ColorF, _
   ByRef end As ColorF, _
   ByVal amount As System.Single _
) 
public static void LerpRef( 
   out ColorF result,
   ref ColorF start,
   ref ColorF end,
   System.float amount
)

Parameters

result
The linear interpolation of the two colors.
start
Start color.
end
End color.
amount
Value between 0 and 1 indicating the weight of end.
Remarks
This method performs the linear interpolation based on the following formula. start + (end - start) * amount Passing amount a value of 0 will cause start to be returned; a value of 1 will cause end to be returned.
See Also

Reference

ColorF Structure
ColorF Members