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.