Converts an alpha value to a translucency value. When the alpha is 255 or greater, the
translucency is 0.0f. When the alpha is 0 or less, the translucency is 1.0f. When the
alpha is in between these values, the translucency is linearly ramped between 0.0f and 1.0f
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 22.2.414.0 (22.2.414.0)
public static float AlphaToTranslucency(
Public Shared Function AlphaToTranslucency (
alpha As Integer
) As Single
static float AlphaToTranslucency(
static member AlphaToTranslucency :
alpha : int -> float32
- Type: SystemInt32
The alpha value to convert to a translucency.
The translucency value.