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: 24.1.418.0 (24.1.418.0)
public static Color CreateColorFromColorAndTranslucency(
	Color color,
	float translucency


Type: System.DrawingColor
The base color.
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