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: 23.2.417.0 (23.2.417.0)
Syntaxpublic static Color CreateColorFromColorAndTranslucency(
Color color,
float translucency
)
Public Shared Function CreateColorFromColorAndTranslucency (
color As Color,
translucency As Single
) As Color
public:
static Color CreateColorFromColorAndTranslucency(
Color color,
float translucency
)
static member CreateColorFromColorAndTranslucency :
color : Color *
translucency : float32 -> Color
Parameters
- color
- Type: System.DrawingColor
The base color. - translucency
- Type: SystemSingle
The translucency value.
Return Value
Type:
ColorThe base color with its alpha value replaced with a value computed from the translucency.
See Also