RgbaHalf Struct
A pixel with half-precision floating-point red, green, blue and straight (non-premultiplied) alpha components, for scene-referred and high dynamic range data stored in 8 bytes per pixel.
public struct RgbaHalf : IEquatable<RgbaHalf>- Implements
Constructors
| Name | Description |
|---|---|
| RgbaHalf(Half, Half, Half) | Initializes a new instance of the RgbaHalf struct with a fully opaque alpha. |
| RgbaHalf(Half, Half, Half, Half) | Initializes a new instance of the RgbaHalf struct. |
Methods
| Name | Description |
|---|---|
| Equals(RgbaHalf) | 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. |
Equals overloads
Equals(RgbaHalf)
RgbaHalf.csIndicates whether the current object is equal to another object of the same type.
Parameters
otherRgbaHalf- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Remarks
Components are compared with Half.Equals: a component that is not a number equals itself.
Equals(object?)
RgbaHalf.csGetHashCode()
RgbaHalf.csToString()
RgbaHalf.csOperators
| Name | Description |
|---|---|
| operator ==(RgbaHalf, RgbaHalf) | Compares two pixels for equality. |
| operator !=(RgbaHalf, RgbaHalf) | Compares two pixels for inequality. |
operator ==(RgbaHalf, RgbaHalf)
RgbaHalf.csoperator !=(RgbaHalf, RgbaHalf)
RgbaHalf.csFields
| Name | Description |
|---|---|
| A | The straight alpha component (0 is fully transparent, 1 is fully opaque). |
| B | The blue component. |
| G | The green component. |
| R | The red component. |
A
The straight alpha component (0 is fully transparent, 1 is fully opaque).
public Half AB
The blue component.
public Half BG
The green component.
public Half GR
The red component.
public Half R