Edit

SKShader.CreateCompose Method

Definition

Overloads

Name Description
CreateCompose(SKShader, SKShader)

Create a new compose shader, which combines two shaders by the SrcOver blend mode.

CreateCompose(SKShader, SKShader, SKBlendMode)

Create a new compose shader, which combines two shaders by a blend mode.

CreateCompose(SKShader, SKShader)

Create a new compose shader, which combines two shaders by the SrcOver blend mode.

public static SkiaSharp.SKShader CreateCompose(SkiaSharp.SKShader shaderA, SkiaSharp.SKShader shaderB);

Parameters

shaderA
SKShader

The colors from this shader are seen as the destination by the blend mode.

shaderB
SKShader

The colors from this shader are seen as the source by the blend mode.

Returns

Returns a new SKShader, or an empty shader on error. Never returns null.

Applies to

CreateCompose(SKShader, SKShader, SKBlendMode)

Create a new compose shader, which combines two shaders by a blend mode.

public static SkiaSharp.SKShader CreateCompose(SkiaSharp.SKShader shaderA, SkiaSharp.SKShader shaderB, SkiaSharp.SKBlendMode mode);

Parameters

shaderA
SKShader

The colors from this shader are seen as the destination by the blend mode.

shaderB
SKShader

The colors from this shader are seen as the source by the blend mode.

mode
SKBlendMode

The blend mode that combines the two shaders.

Returns

Returns a new SKShader, or an empty shader on error. Never returns null.

Applies to