YIQ



Declaration

[Serializable]
public struct YIQ : IComponentModelEncoded<YIQ>, IComponentModelEncoded, IComponentModel<YIQ>, IComponentModel

Description

The Y′IQ components of a color - luma (Y′) and chroma (I,Q).

Properties

YThe luma component of the color in the range [0..1].
IThe orange-blue chroma component of the color in the range [-0.596..0.596].
QThe purple-green chroma component of the color in the range [-0.523..0.523].
Item[int]Gets or sets the component at the specified index.

Constructors

YIQCreates new Y′IQ components from the given values.

Methods

CopyReturns a copy of the components.
SetConverts a color to the components and sets them as the new values.
MixReturns the result of mixing the color with another color using a weight between [0..1]. A weight of 0 results in the first color, and a weight of 1 results in the second color.
EqualsDetermines if the components are equal to another.
GetHashCodeReturns the hash code of the components.
ToStringConverts the components to a string.
ToColorConverts the components to a color.
ToYUVConverts the components to YUV components.

Operators

Equality
Inequality
Explicit