SKShader.CreateSweepGradient Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈