ColorExtensionsBlend(PColorF, PColorF, WorkingColorSpace) Method
Blends the specified
foreColor and
backColor in the specified
colorSpace.
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.0.0
public static PColorF Blend(
this PColorF foreColor,
PColorF backColor,
WorkingColorSpace colorSpace
)
<ExtensionAttribute>
Public Shared Function Blend (
foreColor As PColorF,
backColor As PColorF,
colorSpace As WorkingColorSpace
) As PColorF
public:
[ExtensionAttribute]
static PColorF Blend(
PColorF foreColor,
PColorF backColor,
WorkingColorSpace colorSpace
)
[<ExtensionAttribute>]
static member Blend :
foreColor : PColorF *
backColor : PColorF *
colorSpace : WorkingColorSpace -> PColorF
- foreColor PColorF
- The covering color to blend with backColor.
- backColor PColorF
- The background color to be covered with foreColor.
- colorSpace WorkingColorSpace
- The color space to be used for the blending. If Default, then the linear color space will be used.
For performance reasons this method does not validate this parameter. For undefined values the linear color space will be used as well.
PColorFforeColor 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
PColorF. 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).