src/AppMotor.Core/Colors/CmykColor.cs
/// <summary>
/// Converts this CMYK color into its corresponding CMY color.
/// </summary>
/// <returns></returns>
Converts this CMYK color into its corresponding CMY color.
Converts this CMYK color into its corresponding CMY color .
[MustUseReturnValue]
    public CmyColor ToCmy()
    {
        var maxRgb = 1.0 - this.K / 100;
        return new CmyColor(
            this.A,
            (byte)Math.Round(255 - 255.0 * (1 - (double)this._c) * maxRgb),
            (byte)Math.Round(255 - 255.0 * (1 - (double)this._m) * maxRgb),
            (byte)Math.Round(255 - 255.0 * (1 - (double)this._y) * maxRgb)
        );
    }
[ MustUseReturnValue ] public CmyColor ToCmy ( ) { var maxRgb = 1.0 - this . K / 100 ; return new CmyColor ( this . A , ( byte ) Math . Round ( 255 - 255.0 * ( 1 - ( double ) this . _c ) * maxRgb ) , ( byte ) Math . Round ( 255 - 255.0 * ( 1 - ( double ) this . _m ) * maxRgb ) , ( byte ) Math . Round ( 255 - 255.0 * ( 1 - ( double ) this . _y ) * maxRgb ) ) ; }
Converts this CMYK color into its corresponding CMY color.
Converts this CMYK color into its corresponding CMY color .
None