Exemple #1
0
 private void UseBackground_CheckedChanged(object sender, EventArgs e)
 {
     if (checkBox1.Checked)
     {
         button3.BackColor = SpriteLib.GetMostCommon(new Bitmap(image));
     }
 }
Exemple #2
0
        private void MakeTransparent_Click(object sender, EventArgs e)
        {
            Color c = button3.BackColor;

            if (checkBox1.Checked)
            {
                c = SpriteLib.GetMostCommon(new Bitmap(image));
            }

            Bitmap bmp = new Bitmap(image);

            bmp.MakeTransparent(c);

            pictureBox1.Image = bmp;
        }