SKShader.CreateColorFilter(SKShader, SKColorFilter) Method

Definition

Creates a new shader that produces the same colors as invoking this shader and then applying the color filter.

public static SkiaSharp.SKShader CreateColorFilter (SkiaSharp.SKShader shader, SkiaSharp.SKColorFilter filter);

Parameters

shader
SKShader

The shader to apply.

filter
SKColorFilter

The color filter to apply.

Returns

Returns a new SKShader, or an empty shader on error. This function never returns null.

Applies to