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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.