AForge.Imaging.YCbCr.YCbCr C# (CSharp) Method

YCbCr() public method

Initializes a new instance of the YCbCr class.
public YCbCr ( float y, float cb, float cr ) : System
y float Y component.
cb float Cb component.
cr float Cr component.
return System
        public YCbCr( float y, float cb, float cr )
        {
            this.Y  = Math.Max(  0.0f, Math.Min( 1.0f, y ) );
            this.Cb = Math.Max( -0.5f, Math.Min( 0.5f, cb ) );
            this.Cr = Math.Max( -0.5f, Math.Min( 0.5f, cr ) );
        }

Same methods

YCbCr::YCbCr ( ) : System