Share via


ColorExtensions.MultiplyAlpha(Color, Single) Method

Definition

Multiplies the current alpha by a percentage (0-1f)

public static System.Drawing.Color MultiplyAlpha (this System.Drawing.Color color, float percentage);

Parameters

color
System.Drawing.Color

The current color to manipulate.

percentage
System.Single

The percentage from 0-1f

Returns

System.Drawing.Color

The new color.

Applies to