SKGraphicsExtensions.AsColor(SKColor) Method

Definition

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.

Applies to