Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="l"></param>
        /// <param name="c"></param>
        /// <param name="h"></param>
        /// <returns></returns>
        public static Rgba ToRgba(double l, double c, double h)
        {
            var lab = ToLab(l, c, h);

            return(Lab.ToRgba(lab.L, lab.A, lab.B));
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="R"></param>
        /// <param name="G"></param>
        /// <param name="B"></param>
        /// <param name="A"></param>
        /// <returns></returns>
        public static Lch FromRgba(byte R, byte G, byte B, byte A = 255)
        {
            var lab = Lab.FromRgba(R, G, B, A);

            return(FromLab(lab.L, lab.A, lab.B));
        }