SKShader.CreateSweepGradient Method

Definition

Overloads

CreateSweepGradient(SKPoint, SKColor[], Single[])

Creates a shader that generates a sweep gradient given a center.

CreateSweepGradient(SKPoint, SKColor[])

Creates a shader that generates a sweep gradient given a center.

CreateSweepGradient(SKPoint, SKColor[], Single[], SKMatrix)

Creates a shader that generates a sweep gradient given a center.

CreateSweepGradient(SKPoint, SKColor[], SKShaderTileMode, Single, Single)

Creates a shader that generates a sweep gradient given a center.

CreateSweepGradient(SKPoint, SKColor[], Single[], SKShaderTileMode, Single, Single)

Creates a shader that generates a sweep gradient given a center.

CreateSweepGradient(SKPoint, SKColor[], Single[], SKShaderTileMode, Single, Single, SKMatrix)

Creates a shader that generates a sweep gradient given a center.

CreateSweepGradient(SKPoint, SKColor[], Single[])

Creates a shader that generates a sweep gradient given a center.

public static SkiaSharp.SKShader CreateSweepGradient (SkiaSharp.SKPoint center, SkiaSharp.SKColor[] colors, float[] colorPos);

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColor[]

The array colors to be distributed around the center.

colorPos
Single[]

The positions (in the range of 0..1) of each corresponding color, or null to evenly distribute the colors.

Returns

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

CreateSweepGradient(SKPoint, SKColor[])

Creates a shader that generates a sweep gradient given a center.

public static SkiaSharp.SKShader CreateSweepGradient (SkiaSharp.SKPoint center, SkiaSharp.SKColor[] colors);

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColor[]

The array colors to be distributed around the center.

Returns

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

CreateSweepGradient(SKPoint, SKColor[], Single[], SKMatrix)

Creates a shader that generates a sweep gradient given a center.

public static SkiaSharp.SKShader CreateSweepGradient (SkiaSharp.SKPoint center, SkiaSharp.SKColor[] colors, float[] colorPos, SkiaSharp.SKMatrix localMatrix);

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColor[]

The array colors to be distributed around the center.

colorPos
Single[]

The positions (in the range of 0..1) of each corresponding color, or null to evenly distribute the colors.

localMatrix
SKMatrix

The matrix to apply before applying the shader.

Returns

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

CreateSweepGradient(SKPoint, SKColor[], SKShaderTileMode, Single, Single)

Creates a shader that generates a sweep gradient given a center.

public static SkiaSharp.SKShader CreateSweepGradient (SkiaSharp.SKPoint center, SkiaSharp.SKColor[] colors, SkiaSharp.SKShaderTileMode tileMode, float startAngle, float endAngle);

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColor[]

The array colors to be distributed around the center.

tileMode
SKShaderTileMode

The tiling mode.

startAngle
Single

The start of the angular range.

endAngle
Single

The end of the angular range.

Returns

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

CreateSweepGradient(SKPoint, SKColor[], Single[], SKShaderTileMode, Single, Single)

Creates a shader that generates a sweep gradient given a center.

public static SkiaSharp.SKShader CreateSweepGradient (SkiaSharp.SKPoint center, SkiaSharp.SKColor[] colors, float[] colorPos, SkiaSharp.SKShaderTileMode tileMode, float startAngle, float endAngle);

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColor[]

The array colors to be distributed around the center.

colorPos
Single[]

The positions (in the range of 0..1) of each corresponding color, or null to evenly distribute the colors.

tileMode
SKShaderTileMode

The tiling mode.

startAngle
Single

The start of the angular range.

endAngle
Single

The end of the angular range.

Returns

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

CreateSweepGradient(SKPoint, SKColor[], Single[], SKShaderTileMode, Single, Single, SKMatrix)

Creates a shader that generates a sweep gradient given a center.

public static SkiaSharp.SKShader CreateSweepGradient (SkiaSharp.SKPoint center, SkiaSharp.SKColor[] colors, float[] colorPos, SkiaSharp.SKShaderTileMode tileMode, float startAngle, float endAngle, SkiaSharp.SKMatrix localMatrix);

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColor[]

The array colors to be distributed around the center.

colorPos
Single[]

The positions (in the range of 0..1) of each corresponding color, or null to evenly distribute the colors.

tileMode
SKShaderTileMode

The tiling mode.

startAngle
Single

The start of the angular range.

endAngle
Single

The end of the angular range.

localMatrix
SKMatrix

The matrix to apply before applying the shader.

Returns

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

Applies to