Editar

Compartir a través de


SKPMColor Struct

Definition

32-bit ARGB premultiplied color value.

public struct SKPMColor
public readonly struct SKPMColor : IEquatable<SkiaSharp.SKPMColor>
Inheritance
SKPMColor
Implements

Remarks

The byte order for this value is configuration dependent. This is different from SKColor, which is unpremultiplied, and is always in the same byte order.

Constructors

SKPMColor(UInt32)

Creates a color from the specified integer.

Properties

Alpha

Gets the alpha component of the color.

Blue

Gets the blue component of the color.

Green

Gets the green component of the color.

Red

Gets the red component of the color.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

Equals(SKPMColor)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

PreMultiply(SKColor)

Converts an unpremultiplied SKColor to a premultiplied SKPMColor.

PreMultiply(SKColor[])

Converts an array of unpremultiplied SKColors to an array of premultiplied SKPMColors.

ToString()

Returns the color as a string in the format: #AARRGGBB.

UnPreMultiply(SKPMColor)

Converts a premultiplied SKPMColor to the unpremultiplied SKColor.

UnPreMultiply(SKPMColor[])

Converts an array of premultiplied SKPMColors to an array of unpremultiplied SKColors.

Operators

Equality(SKPMColor, SKPMColor)

Indicates whether two SKPMColor objects are equal.

Explicit(SKColor to SKPMColor)

Converts an unpremultiplied SKColor to the premultiplied SKPMColor.

Explicit(SKPMColor to SKColor)

Converts a premultiplied SKPMColor to the unpremultiplied SKColor.

Explicit(SKPMColor to UInt32)

Converts a SKPMColor to a UInt32.

Implicit(UInt32 to SKPMColor)

Converts a UInt32 to a SKPMColor.

Inequality(SKPMColor, SKPMColor)

Indicates whether two SKPMColor objects are different.

Applies to