SKImageFilter.CreateArithmetic 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 an image filter that applies the specified arithmetic blend.
public static SkiaSharp.SKImageFilter CreateArithmetic (float k1, float k2, float k3, float k4, bool enforcePMColor, SkiaSharp.SKImageFilter background, SkiaSharp.SKImageFilter foreground = default, SkiaSharp.SKImageFilter.CropRect cropRect = default);
Parameters
- k1
- Single
The k1 constant value.
- k2
- Single
The k2 constant value.
- k3
- Single
The k3 constant value.
- k4
- Single
The k4 constant value.
- enforcePMColor
- Boolean
Whether or not premultiplied colors are enforced.
- background
- SKImageFilter
The background image filter to use. If this is null, then the source bitmap is used.
- foreground
- SKImageFilter
The foreground image filter to use. If this is null, then the source bitmap is used.
- cropRect
- SKImageFilter.CropRect
The rectangle to which the output processing will be limited.
Returns
Returns the new SKImageFilter, or null on error.
Applies to
SkiaSharp