Exemplo n.º 1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     bm = new Bitmap(pictureBoxSearch.Size.Width, pictureBoxSearch.Size.Height);
     Aplicacoes.LoadPicBox(bm, 255, 255, 255);
     pictureBoxSearch.Image = bm;
     bmC = new Bitmap(pictureBoxCor.Size.Width, pictureBoxCor.Size.Height);
     Aplicacoes.LoadPicBox(bm, 255, 255, 255);
     pictureBoxCor.Image = bm;
 }
Exemplo n.º 2
0
        private void btnCor_Click(object sender, EventArgs e)
        {
            if (colorDialog1.ShowDialog() == DialogResult.OK)
            {
                r = colorDialog1.Color.R;
                g = colorDialog1.Color.G;
                b = colorDialog1.Color.B;

                Aplicacoes.LoadPicBox(bmC, r, g, b);
                pictureBoxCor.Image = bmC;
            }
        }
Exemplo n.º 3
0
 private void btnResetar_Click(object sender, EventArgs e)
 {
     Aplicacoes.LoadPicBox(bm, 255, 255, 255);
     pictureBoxSearch.Image = bm;
 }