ColorExtensions.MultiplyAlpha(Color, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.