Modifier

Partager via


SKPMColor.Explicit Operator

Definition

Overloads

Explicit(SKPMColor to UInt32)

Converts a SKPMColor to a UInt32.

Explicit(SKPMColor to SKColor)

Converts a premultiplied SKPMColor to the unpremultiplied SKColor.

Explicit(SKColor to SKPMColor)

Converts an unpremultiplied SKColor to the premultiplied SKPMColor.

Explicit(SKPMColor to UInt32)

Converts a SKPMColor to a UInt32.

public static explicit operator uint (SkiaSharp.SKPMColor color);

Parameters

color
SKPMColor

The color to convert.

Returns

The UInt32 value for the color.

Applies to

Explicit(SKPMColor to SKColor)

Converts a premultiplied SKPMColor to the unpremultiplied SKColor.

public static explicit operator SkiaSharp.SKColor (SkiaSharp.SKPMColor color);

Parameters

color
SKPMColor

The premultiplied color to convert.

Returns

Returns the new unpremultiplied SKColor.

Applies to

Explicit(SKColor to SKPMColor)

Converts an unpremultiplied SKColor to the premultiplied SKPMColor.

public static explicit operator SkiaSharp.SKPMColor (SkiaSharp.SKColor color);

Parameters

color
SKColor

The unpremultiplied color to convert.

Returns

Returns the new premultiplied SKPMColor.

Applies to