SKBlender.CreateArithmetic(Single, Single, Single, Single, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a blender that applies the arithmetic formula: k1 * src * dst + k2 * src + k3 * dst + k4.
public static SkiaSharp.SKBlender CreateArithmetic(float k1, float k2, float k3, float k4, bool enforcePMColor);
Parameters
- k1
- Single
The coefficient for source * destination.
- k2
- Single
The coefficient for source.
- k3
- Single
The coefficient for destination.
- k4
- Single
The constant offset added to the result.
- enforcePMColor
- Boolean
If true, clamps the result to valid premultiplied color values.
Returns
A new blender that applies the arithmetic combination.