SKGraphicsExtensions.AsSKColorMultiplyAlpha(Color, Single) 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 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.