Editar

Compartilhar via


SKShader.CreateSweepGradient Method

Definition

Overloads

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace, Single[], SKShaderTileMode, Single, Single, SKMatrix)
CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace, Single[], SKShaderTileMode, Single, Single)
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)
CreateSweepGradient(SKPoint, SKColor[], Single[], SKShaderTileMode, Single, Single)

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

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

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

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace)
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[], SKShaderTileMode, Single, Single)

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

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

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
colors
SKColorF[]
colorspace
SKColorSpace
colorPos
Single[]
tileMode
SKShaderTileMode
startAngle
Single
endAngle
Single
localMatrix
SKMatrix

Returns

Applies to

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

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
colors
SKColorF[]
colorspace
SKColorSpace
colorPos
Single[]
tileMode
SKShaderTileMode
startAngle
Single
endAngle
Single

Returns

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. This function never returns null.

Applies to

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

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

Parameters

center
SKPoint
colors
SKColorF[]
colorspace
SKColorSpace
tileMode
SKShaderTileMode
startAngle
Single
endAngle
Single

Returns

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. This function never returns null.

Applies to

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

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

Parameters

center
SKPoint
colors
SKColorF[]
colorspace
SKColorSpace
colorPos
Single[]
localMatrix
SKMatrix

Returns

Applies to

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

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

Parameters

center
SKPoint
colors
SKColorF[]
colorspace
SKColorSpace
colorPos
Single[]

Returns

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. This function never returns null.

Applies to

CreateSweepGradient(SKPoint, SKColorF[], SKColorSpace)

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

Parameters

center
SKPoint
colors
SKColorF[]
colorspace
SKColorSpace

Returns

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. This function 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. This function never returns null.

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. This function never returns null.

Applies to