Rgba64 Struct
A pixel with 16-bit red, green, blue and straight (non-premultiplied) alpha components.
public struct Rgba64 : IEquatable<Rgba64>Remarks
Components are stored as UInt16 values in native endianness. Codecs convert from/to the endianness of the encoded format; raw byte access (ImageFrame.CopyPixelBytesTo) exposes native-endian values.
- Implements
Constructors
| Name | Description |
|---|---|
| Rgba64(ushort, ushort, ushort, ushort) | Initializes a new instance of the Rgba64 struct. |
Rgba64(ushort, ushort, ushort, ushort)
Rgba64.csMethods
| Name | Description |
|---|---|
| Equals(Rgba64) | 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. |
| FromRgba32(Rgba32) | Creates an Rgba64 from an Rgba32 using exact full-range expansion (v * 257). |
| GetHashCode() | Returns the hash code for this instance. |
| ToString() | Returns the fully qualified type name of this instance. |
FromRgba32(Rgba32)
Rgba64.csGetHashCode()
Rgba64.csToString()
Rgba64.csOperators
| Name | Description |
|---|---|
| operator ==(Rgba64, Rgba64) | Compares two pixels for equality. |
| operator !=(Rgba64, Rgba64) | Compares two pixels for inequality. |
operator ==(Rgba64, Rgba64)
Rgba64.csoperator !=(Rgba64, Rgba64)
Rgba64.csFields
| Name | Description |
|---|---|
| A | The straight alpha component (0 is fully transparent, 65535 is fully opaque). |
| B | The blue component. |
| G | The green component. |
| R | The red component. |
A
The straight alpha component (0 is fully transparent, 65535 is fully opaque).
public ushort AB
The blue component.
public ushort BG
The green component.
public ushort GR
The red component.
public ushort R