ColorExtensionsBlend(ColorF, ColorF) Method
Blends the specified
foreColor and
backColor in the linear color space.
It returns
foreColor if it has no transparency (that is, when
A is greater than or equal to 1); otherwise, the result of the blending.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.1.1
public static ColorF Blend(
this ColorF foreColor,
ColorF backColor
)
<ExtensionAttribute>
Public Shared Function Blend (
foreColor As ColorF,
backColor As ColorF
) As ColorF
public:
[ExtensionAttribute]
static ColorF Blend(
ColorF foreColor,
ColorF backColor
)
[<ExtensionAttribute>]
static member Blend :
foreColor : ColorF *
backColor : ColorF -> ColorF
- foreColor ColorF
- The covering color to blend with backColor.
- backColor ColorF
- The background color to be covered with foreColor.
ColorFforeColor 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
ColorF. 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).