ColorExtensions.Alpha Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Alpha(Color, single)

Sets the alpha channel value for the specified color.

public static Color Alpha(this Color color, float percentage)

Parameters

color
System.Drawing.Color

The color to for which to set alpha channel value.

percentage
single

The alpha channel percentage (0-100%).

Returns

System.Drawing.Color