Exemplo n.º 1
0
        // Efecto escala de GRISES
        private void escalaDeGrisesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bitmap  image = new Bitmap(pictureBox1.Image);
            Efectos foto  = new Efectos(image);

            pictureBox1.Image = foto.EscalaGris();
        }
Exemplo n.º 2
0
        // Convierte a la imagen en negativo
        private void negativoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Bitmap  image = new Bitmap(pictureBox1.Image);
            Efectos foto  = new Efectos(image);

            pictureBox1.Image = foto.Negativo();
        }
Exemplo n.º 3
0
 private void barraCanalAzul_Scroll(object sender, EventArgs e)
 {
     if (barraCanalAzul.Value == 0)
     {
         pictureBox1.Image = imagen_original;
     }
     else
     {
         Efectos foto = new Efectos(imagen_original);
         pictureBox1.Image = foto.CanalAzul(barraCanalAzul.Value);
     }
 }
Exemplo n.º 4
0
        private void barraBrillo_Scroll(object sender, EventArgs e)
        {
            //Bitmap imagen = new Bitmap(pictureBox1.Image);

            if (barraBrillo.Value == 0)
            {
                pictureBox1.Image = imagen_original;
            }
            else
            {
                Efectos foto = new Efectos(imagen_original);
                pictureBox1.Image = foto.Brillo(barraBrillo.Value);
            }
        }
Exemplo n.º 5
0
        private void BarraBlur_Scroll_1(object sender, EventArgs e)
        {
            //Bitmap imagen = new Bitmap(pictureBox1.Image);
            //Efectos foto = new Efectos(image);

            if (BarraBlur.Value == 0)
            {
                pictureBox1.Image = imagen_original;
            }
            else
            {
                Efectos foto = new Efectos(imagen_original);
                pictureBox1.Image = foto.BlurEffect(BarraBlur.Value);
            }
        }