xtd 0.2.0
Loading...
Searching...
No Matches

◆ from_yuv()

static xtd::drawing::color xtd::drawing::color::from_yuv ( float  y,
float  u,
float  v 
)
staticnoexcept

Creates a xtd::drawing::color class from the three YUV components (luma and choma) values.

Parameters
yThe Y'UV Y value of this xtd::drawing::color. The y ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.
uThe Y'UV U value of this xtd::drawing::color. The y ranges from -0.5 through0.5. When U and V are both 0, the color is neutral (gray). Positive U values represent the red-green axis, and positive V values represent the blue-yellow axis
vThe Y'UV V value of this xtd::drawing::color. The y ranges from -0.5 through0.5. When U and V are both 0, the color is neutral (gray). Positive U values represent the red-green axis, and positive V values represent the blue-yellow axis
Returns
xtd::drawing::color The xtd::drawing::color structure that this method creates.