ColorExtensionsBlend(Color32, Color32) Method
Blends the specified
foreColor and
backColor in the sRGB color space.
It returns
foreColor if it has no transparency (that is, when
A is 255); otherwise, the result of the blending.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.2.0
public static Color32 Blend(
this Color32 foreColor,
Color32 backColor
)
<ExtensionAttribute>
Public Shared Function Blend (
foreColor As Color32,
backColor As Color32
) As Color32
public:
[ExtensionAttribute]
static Color32 Blend(
Color32 foreColor,
Color32 backColor
)
[<ExtensionAttribute>]
static member Blend :
foreColor : Color32 *
backColor : Color32 -> Color32
- foreColor Color32
- The covering color to blend with backColor.
- backColor Color32
- The background color to be covered with foreColor.
Color32foreColor if it has no transparency; otherwise, the result of the blending.In Visual Basic and C#, you can call this method as an instance method on any object of type
Color32. 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).