Struct Ycc
Defines a Ycc color (YCrCb JPEG)
[ColorInfo(ConversionCodename = "YCrCb")]
public struct Ycc : IColor, IEquatable<Ycc>
- Implements
- Inherited Members
Constructors
Ycc(double, double, double)
Create a Ycc color using the specific values
public Ycc(double y, double cr, double cb)
Parameters
y
doubleThe Y value for this color
cr
doubleThe Cr value for this color
cb
doubleThe Cb value for this color
Properties
Cb
Get or set the intensity of the Cb color channel
public double Cb { get; set; }
Property Value
Cr
Get or set the intensity of the Cr color channel
public double Cr { get; set; }
Property Value
Dimension
Get the dimension of this color
public int Dimension { get; }
Property Value
MCvScalar
Get or Set the equivalent MCvScalar value
public MCvScalar MCvScalar { get; set; }
Property Value
Y
Get or set the intensity of the Y color channel
public double Y { get; set; }
Property Value
Methods
Equals(Ycc)
Return true if the two color equals
public bool Equals(Ycc other)
Parameters
other
YccThe other color to compare with
Returns
- bool
true if the two color equals
ToString()
Represent this color as a String
public override string ToString()
Returns
- string
The string representation of this color