/// <summary> /// Converts CMYK to RGB. /// </summary> /// <param name="cmyk"></param> public static RGB CMYKtoRGB(CMYK cmyk) { return CMYKtoRGB(cmyk.Cyan, cmyk.Magenta, cmyk.Yellow, cmyk.Black); }
/// <summary> /// Converts CMYK to RGB. /// </summary> /// <param name="cmyk"></param> public static RGB CMYKtoRGB(CMYK cmyk) { return(CMYKtoRGB(cmyk.Cyan, cmyk.Magenta, cmyk.Yellow, cmyk.Black)); }
/// <summary> /// Converts CMYK to RGB. /// </summary> /// <param name="cmyk"></param> public static Color CMYKtoColor(CMYK cmyk) { int red = Convert.ToInt32((1 - cmyk.Cyan)*(1 - cmyk.Black)*255); int green = Convert.ToInt32((1 - cmyk.Magenta)*(1 - cmyk.Black)*255); int blue = Convert.ToInt32((1 - cmyk.Yellow)*(1 - cmyk.Black)*255); return Color.FromArgb(red, green, blue); }