Exemple #1
0
        public Color ToColor()
        {
            RgbColor rgb = ToRgb();

            return(Color.FromArgb(rgb.Red, rgb.Green, rgb.Blue));
        }
Exemple #2
0
        public static HsvColor FromColor(Color color)
        {
            RgbColor rgb = new RgbColor(color.R, color.G, color.B);

            return(rgb.ToHsv());
        }