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
Color

The current color to manipulate.

percentage
Single

The percentage from 0-1f

Returns

The new color.

Applies to