編輯

共用方式為


SKShader.CreateColor Method

Definition

Overloads

CreateColor(SKColor)

Creates a new shader that just draws the specified color.

CreateColor(SKColorF, SKColorSpace)

Creates a new shader that just draws the specified color.

CreateColor(SKColor)

Creates a new shader that just draws the specified color.

public static SkiaSharp.SKShader CreateColor (SkiaSharp.SKColor color);

Parameters

color
SKColor

The color to paint.

Returns

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

Applies to

CreateColor(SKColorF, SKColorSpace)

Creates a new shader that just draws the specified color.

public static SkiaSharp.SKShader CreateColor (SkiaSharp.SKColorF color, SkiaSharp.SKColorSpace colorspace);

Parameters

color
SKColorF

The color to paint.

colorspace
SKColorSpace

The colorspace to use.

Returns

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

Applies to