Struct YCbCr
Represents an YCbCr (luminance, blue chroma, red chroma) color as defined in the ITU-T T.871 specification for the JFIF use with Jpeg. http://en.wikipedia.org/wiki/YCbCr http://www.ijg.org/files/T-REC-T.871-201105-I!!PDF-E.pdf
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct YCbCr : IEquatable<YCbCr>
Constructors
| Improve this Doc View SourceYCbCr(Vector3)
Initializes a new instance of the YCbCr struct.
Declaration
public YCbCr(Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | The vector representing the y, cb, cr components. |
YCbCr(Single, Single, Single)
Initializes a new instance of the YCbCr struct.
Declaration
public YCbCr(float y, float cb, float cr)
Parameters
Type | Name | Description |
---|---|---|
Single | y | The y luminance component. |
Single | cb | The cb chroma component. |
Single | cr | The cr chroma component. |
Fields
| Improve this Doc View SourceCb
Gets the Cb chroma component.
Declaration
public readonly float Cb
Field Value
Type | Description |
---|---|
Single |
Cr
Gets the Cr chroma component.
Declaration
public readonly float Cr
Field Value
Type | Description |
---|---|
Single |
Y
Gets the Y luminance component.
Declaration
public readonly float Y
Field Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceEquals(YCbCr)
Declaration
public readonly bool Equals(YCbCr other)
Parameters
Type | Name | Description |
---|---|---|
YCbCr | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Operators
| Improve this Doc View SourceEquality(YCbCr, YCbCr)
Compares two YCbCr objects for equality.
Declaration
public static bool operator ==(YCbCr left, YCbCr right)
Parameters
Type | Name | Description |
---|---|---|
YCbCr | left | The YCbCr on the left side of the operand. |
YCbCr | right | The YCbCr on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | True if the current left is equal to the |
Inequality(YCbCr, YCbCr)
Compares two YCbCr objects for inequality.
Declaration
public static bool operator !=(YCbCr left, YCbCr right)
Parameters
Type | Name | Description |
---|---|---|
YCbCr | left | The YCbCr on the left side of the operand. |
YCbCr | right | The YCbCr on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | True if the current left is unequal to the |