Exemplo n.º 1
0
        public string[] GetComponentsForColor(AxoColor color, IFormatProvider formatProvider)
        {
            var(a, c, m, y, k) = color.ToAcmyk();

            return(new string[]
            {
                c.ToString("F3", formatProvider),
                m.ToString("F3", formatProvider),
                y.ToString("F3", formatProvider),
                k.ToString("F3", formatProvider)
            });
        }
Exemplo n.º 2
0
        public double[] GetComponentsForColor(AxoColor color)
        {
            var(a, c, m, y, k) = color.ToAcmyk();

            return(new double[] { c, m, y, k });
        }