TranslucencyHelperExtractTranslucencyFromColor 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: 24.3.420.0 (24.3.420.0)
Syntax public 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.DrawingColor
The color from which to extra translucency.
Return Value
Type:
SingleThe translucency value.
See Also