Abgr32 Struct
A pixel with 8-bit components and straight (non-premultiplied) alpha, stored in ABGR byte order.
public struct Abgr32 : IEquatable<Abgr32>Remarks
The fields are declared in storage order (Abgr32.A, Abgr32.B, Abgr32.G, Abgr32.R), the memory layout of a 0xRRGGBBAA value stored in little-endian byte order, but the constructor takes components in logical red, green, blue, alpha order, like every other pixel type. It converts to Rgba32 and back without any loss.
- Implements
Constructors
| Name | Description |
|---|---|
| Abgr32(byte, byte, byte, byte) | Initializes a new instance of the Abgr32 struct from components in logical RGBA order. |
Abgr32(byte, byte, byte, byte)
Abgr32.csMethods
| Name | Description |
|---|---|
| Equals(Abgr32) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Indicates whether this instance and a specified object are equal. |
| GetHashCode() | Returns the hash code for this instance. |
| ToString() | Returns the fully qualified type name of this instance. |
GetHashCode()
Abgr32.csToString()
Abgr32.csOperators
| Name | Description |
|---|---|
| operator ==(Abgr32, Abgr32) | Compares two pixels for equality. |
| operator !=(Abgr32, Abgr32) | Compares two pixels for inequality. |
operator ==(Abgr32, Abgr32)
Abgr32.csoperator !=(Abgr32, Abgr32)
Abgr32.csFields
| Name | Description |
|---|---|
| A | The straight alpha component (byte offset 0). |
| B | The blue component (byte offset 1). |
| G | The green component (byte offset 2). |
| R | The red component (byte offset 3). |
A
The straight alpha component (byte offset 0).
public byte AB
The blue component (byte offset 1).
public byte BG
The green component (byte offset 2).
public byte GR
The red component (byte offset 3).
public byte R