Click or drag to resize

TranslucencyHelperCreateColorFromColorAndTranslucency Method

Creates a color from a given color and a given translucency. The alpha channel of the color is ignored, and instead the alpha value for the returned color is computed by calling TranslucencyToAlpha(Single) on the provided translucency value.

Namespace:  AGI.Foundation.Graphics.Advanced
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 22.2.414.0 (22.2.414.0)
Syntax
public static Color CreateColorFromColorAndTranslucency(
	Color color,
	float translucency
)

Parameters

color
Type: System.DrawingColor
The base color.
translucency
Type: SystemSingle
The translucency value.

Return Value

Type: Color
The base color with its alpha value replaced with a value computed from the translucency.
See Also