Click or drag to resize
Ab4d.SharpEngine logo

ExtensionsToPremultipliedColor3(Color, Single) Method

Converts WPF Color to premultipled SharpEngine's Color3 (premultipled color is color where R, G and B color values are multiplied with alpha value)

Namespace: Ab4d.SharpEngine.Wpf
Assembly: Ab4d.SharpEngine.Wpf (in Ab4d.SharpEngine.Wpf.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public static Color3 ToPremultipliedColor3(
	this Color color,
	float alpha
)

Parameters

color  Color
WPF Color
alpha  Single
alpha

Return Value

Color3
SharpEngine's Color3

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Color. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also