SKGraphicsExtensions.AsSKColor(Color) 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.
Converts a .NET MAUI Graphics color to a SkiaSharp color.
public:
[System::Runtime::CompilerServices::Extension]
static SkiaSharp::SKColor AsSKColor(Microsoft::Maui::Graphics::Color ^ target);
public static SkiaSharp.SKColor AsSKColor(this Microsoft.Maui.Graphics.Color target);
static member AsSKColor : Microsoft.Maui.Graphics.Color -> SkiaSharp.SKColor
<Extension()>
Public Function AsSKColor (target As Color) As SKColor
Parameters
- target
- Color
The color to convert.
Returns
A SkiaSharp color that corresponds to the specified color.