Edit

Share via


SKShader.CreateSweepGradient Method

Definition

Overloads

Name Description
CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace, Single[], SKShaderTileMode, Single, Single, SKMatrix)

Creates a shader that generates a sweep gradient with angular range in a specified color space.

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace, Single[], SKShaderTileMode, Single, Single)

Creates a shader that generates a sweep gradient with angular range in a specified color space.

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

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

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace, SKShaderTileMode, Single, Single)

Creates a shader that generates a sweep gradient with angular range in a specified color space.

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

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

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace, Single[], SKMatrix)

Creates a shader that generates a sweep gradient in a specified color space.

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

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, SKColorF[], SKColorSpace)

Creates a shader that generates a sweep gradient in a specified color space.

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, SKColorF[], SKColorSpace, Single[])

Creates a shader that generates a sweep gradient in a specified color space.

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace, Single[], SKShaderTileMode, Single, Single, SKMatrix)

Creates a shader that generates a sweep gradient with angular range in a specified color space.

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

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColorF[]

The array of colors to be distributed around the center.

colorspace
SKColorSpace

The color space for the gradient colors.

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.

Applies to

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace, Single[], SKShaderTileMode, Single, Single)

Creates a shader that generates a sweep gradient with angular range in a specified color space.

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

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColorF[]

The array of colors to be distributed around the center.

colorspace
SKColorSpace

The color space for the gradient colors.

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.

Applies to

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. Never returns null.

Applies to

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace, SKShaderTileMode, Single, Single)

Creates a shader that generates a sweep gradient with angular range in a specified color space.

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

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColorF[]

The array of colors to be distributed around the center.

colorspace
SKColorSpace

The color space for the gradient 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.

Applies to

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. Never returns null.

Applies to

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace, Single[], SKMatrix)

Creates a shader that generates a sweep gradient in a specified color space.

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

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColorF[]

The array of colors to be distributed around the center.

colorspace
SKColorSpace

The color space for the gradient colors.

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.

Applies to

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. Never returns null.

Applies to

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. Never returns null.

Applies to

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace)

Creates a shader that generates a sweep gradient in a specified color space.

public static SkiaSharp.SKShader CreateSweepGradient(SkiaSharp.SKPoint center, SkiaSharp.SKColorF[] colors, SkiaSharp.SKColorSpace colorspace);

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColorF[]

The array of colors to be distributed around the center.

colorspace
SKColorSpace

The color space for the gradient colors.

Returns

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

Applies to

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. Never returns null.

Applies to

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. Never returns null.

Applies to

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace, Single[])

Creates a shader that generates a sweep gradient in a specified color space.

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

Parameters

center
SKPoint

The coordinates of the center of the sweep.

colors
SKColorF[]

The array of colors to be distributed around the center.

colorspace
SKColorSpace

The color space for the gradient colors.

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.

Applies to