ColorExtensionsBlend(PColor64, PColor64) 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 65535); otherwise, the result of the blending.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 9.1.1
C#
public static PColor64 Blend(
	this PColor64 foreColor,
	PColor64 backColor
)

Parameters

foreColor  PColor64
The covering color to blend with backColor.
backColor  PColor64
The background color to be covered with foreColor.

Return Value

PColor64
foreColor if it has no transparency; otherwise, the result of the blending.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PColor64. 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