Share via


SKGraphicsExtensions.AsSKColorMultiplyAlpha(Color, Single) Method

Definition

Converts a .NET MAUI Graphics color to a SkiaSharp color with a multiplied alpha value.

public:
[System::Runtime::CompilerServices::Extension]
 static SkiaSharp::SKColor AsSKColorMultiplyAlpha(Microsoft::Maui::Graphics::Color ^ target, float alpha);
public static SkiaSharp.SKColor AsSKColorMultiplyAlpha(this Microsoft.Maui.Graphics.Color target, float alpha);
static member AsSKColorMultiplyAlpha : Microsoft.Maui.Graphics.Color * single -> SkiaSharp.SKColor
<Extension()>
Public Function AsSKColorMultiplyAlpha (target As Color, alpha As Single) As SKColor

Parameters

target
Color

The color to convert.

alpha
Single

The alpha multiplier to apply (0-1).

Returns

A SkiaSharp color with the alpha value multiplied by the specified factor.

Applies to