TranslucencyHelper.ExtractTranslucencyFromColor Method |
Extracts a translucency value from the alpha channel of a color. This is equivalent
to calling
AlphaToTranslucency(Int32) on the alpha component of the color.
Namespace:
AGI.Foundation.Graphics.Advanced
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 25.1.421.0 (25.1.421.0)
Syntaxpublic static float ExtractTranslucencyFromColor(
Color color
)
Public Shared Function ExtractTranslucencyFromColor (
color As Color
) As Single
public:
static float ExtractTranslucencyFromColor(
Color color
)
static member ExtractTranslucencyFromColor :
color : Color -> float32
Parameters
- color
- Type: System.Drawing.Color
The color from which to extra translucency.
Return Value
Type:
SingleThe translucency value.
See Also