Share via


SKGraphicsExtensions.ToArgb Method

Definition

Overloads

ToArgb(Color, Single)

Converts a .NET MAUI Graphics color to an ARGB integer representation with a modified alpha value.

ToArgb(Color)

Converts a .NET MAUI Graphics color to an ARGB integer representation.

ToArgb(Color, Single)

Source:
SKGraphicsExtensions.cs
Source:
SKGraphicsExtensions.cs
Source:
SKGraphicsExtensions.cs

Converts a .NET MAUI Graphics color to an ARGB integer representation with a modified alpha value.

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

Parameters

target
Color

The color to convert.

alpha
Single

The alpha multiplier to apply (0-1).

Returns

The color as a 32-bit ARGB integer with the modified alpha value.

Applies to

ToArgb(Color)

Source:
SKGraphicsExtensions.cs
Source:
SKGraphicsExtensions.cs
Source:
SKGraphicsExtensions.cs

Converts a .NET MAUI Graphics color to an ARGB integer representation.

public:
[System::Runtime::CompilerServices::Extension]
 static int ToArgb(Microsoft::Maui::Graphics::Color ^ target);
public static int ToArgb(this Microsoft.Maui.Graphics.Color target);
static member ToArgb : Microsoft.Maui.Graphics.Color -> int
<Extension()>
Public Function ToArgb (target As Color) As Integer

Parameters

target
Color

The color to convert.

Returns

The color as a 32-bit ARGB integer.

Applies to