Modifier

Partager via


SKImageFilter.CreateArithmetic Method

Definition

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