SKShader.CreateColor 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
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)
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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour