Udostępnij za pośrednictwem


Color.MultiplyAlpha(Double) Method

Definition

Returns a new color with the alpha channel multiplied by alpha, clamped to the inclusive range [0-1].

public Xamarin.Forms.Color MultiplyAlpha (double alpha);
member this.MultiplyAlpha : double -> Xamarin.Forms.Color

Parameters

alpha
System.Double

The alpha multiplicator.

Returns

A new RGBA color with a possibly new value for its alpha channel. See Remarks.

Remarks

The resulting color has its alpha channel clamped to the inclusive range [0-1], preventing invalid colors.

Applies to