Struct Gray
Defines a Gray color
[ColorInfo(ConversionCodename = "Gray")]
public struct Gray : IColor, IEquatable<Gray>
- Implements
- Inherited Members
Constructors
Gray(double)
Create a Gray color with the given intensity
public Gray(double intensity)
Parameters
intensity
doubleThe intensity for this color
Properties
Dimension
Get the dimension of this color
public int Dimension { get; }
Property Value
Intensity
The intensity of the gray color
public double Intensity { get; set; }
Property Value
- double
The intensity of the gray color
MCvScalar
Get or Set the equivalent MCvScalar value
public MCvScalar MCvScalar { get; set; }
Property Value
Methods
Equals(Gray)
Return true if the two color equals
public bool Equals(Gray other)
Parameters
other
GrayThe other color to compare with
Returns
- bool
true if the two color equals
GetHashCode()
Returns the hash code for this color
public override int GetHashCode()
Returns
- int
the hash code
ToString()
Represent this color as a String
public override string ToString()
Returns
- string
The string representation of this color