Click or drag to resize

TranslucencyHelperTranslucencyToAlpha Method

Converts a translucency value to an alpha value. When the translucency is 1.0f or greater, the alpha is 0. When the translucency is 0.0f or less, the alpha is 255. When the translucency is in between these values, the alpha is linearly ramped between 0 and 255 accordingly.

Namespace:  AGI.Foundation.Graphics.Advanced
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public static int TranslucencyToAlpha(
	float translucency
)

Parameters

translucency
Type: SystemSingle
The translucency value to convert to an alpha.

Return Value

Type: Int32
The alpha value.
See Also