GrayHalf Struct
An opaque grayscale pixel with a half-precision floating-point gray level, in 2 bytes per pixel.
public struct GrayHalf : IEquatable<GrayHalf>- Implements
Constructors
| Name | Description |
|---|---|
| GrayHalf(Half) | Initializes a new instance of the GrayHalf struct. |
GrayHalf(Half)
GrayHalf.csMethods
| Name | Description |
|---|---|
| Equals(GrayHalf) | 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(GrayHalf)
GrayHalf.csIndicates whether the current object is equal to another object of the same type.
Parameters
otherGrayHalf- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.
Remarks
Values are compared with Half.Equals: a value that is not a number equals itself.
Equals(object?)
GrayHalf.csGetHashCode()
GrayHalf.csToString()
GrayHalf.csOperators
| Name | Description |
|---|---|
| operator ==(GrayHalf, GrayHalf) | Compares two pixels for equality. |
| operator !=(GrayHalf, GrayHalf) | Compares two pixels for inequality. |
operator ==(GrayHalf, GrayHalf)
GrayHalf.csoperator !=(GrayHalf, GrayHalf)
GrayHalf.csFields
| Name | Description |
|---|---|
| Value | The gray level. |
Value
The gray level.
public Half Value