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