コード例 #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            Bitmap srcm;

            pictureBox1.Image = ToolFunctions.GetThumbnail((Bitmap)bitmap.Clone(), pictureBox1.Height, pictureBox1.Width) as Image;
            ProcessFunctions.Hsl_Change("s", -5, bitmap, out srcm);
            pictureBox2.Image = ToolFunctions.GetThumbnail((Bitmap)srcm.Clone(), pictureBox1.Height, pictureBox1.Width) as Image;
            Color c  = Color.FromArgb(15, 40, 200);
            Color c2 = ProcessFunctions.Hsl_Pixel_Change(c, "h", 24);

            //Console.WriteLine(hue + "," + sa + "," + l);
            Console.WriteLine(c.R + "," + c.G + "," + c.B + " ; " + c2.R + "," + c2.G + "," + c2.B);
            //pictureBox3.BackColor = Color.FromArgb(258, 2, -1);
        }