LaHalf Struct
A pixel with a half-precision floating-point gray level and a straight (non-premultiplied) alpha component, in 4 bytes per pixel.
public struct LaHalf : IEquatable<LaHalf>- Implements
Constructors
| Name | Description |
|---|---|
| LaHalf(Half) | Initializes a new instance of the LaHalf struct with a fully opaque alpha. |
| LaHalf(Half, Half) | Initializes a new instance of the LaHalf struct. |
Methods
| Name | Description |
|---|---|
| Equals(LaHalf) | 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(LaHalf)
LaHalf.csIndicates whether the current object is equal to another object of the same type.
Parameters
otherLaHalf- 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?)
LaHalf.csGetHashCode()
LaHalf.csToString()
LaHalf.csOperators
| Name | Description |
|---|---|
| operator ==(LaHalf, LaHalf) | Compares two pixels for equality. |
| operator !=(LaHalf, LaHalf) | Compares two pixels for inequality. |
operator ==(LaHalf, LaHalf)
LaHalf.csoperator !=(LaHalf, LaHalf)
LaHalf.csFields
| Name | Description |
|---|---|
| A | The straight alpha component (0 is fully transparent, 1 is fully opaque). |
| L | The gray level. |
A
The straight alpha component (0 is fully transparent, 1 is fully opaque).
public Half AL
The gray level.
public Half L