private void Box_Click(object sender, EventArgs e) { Image recorte = F_H(SelectImage.Text); Bitmap buffer = new Bitmap(recorte.Width / int.Parse(F_C.Text), recorte.Height / int.Parse(F_Fil.Text)); Graphics g = Graphics.FromImage(buffer); g.DrawImage(recorte, 0, 0); C_I = new CutImage(buffer); C_I.SetDelegado(new PasarDatos(CompletarDatos)); C_I.Activate(); C_I.Show(); }
//Recortar imagen private void Cut_Click(object sender, EventArgs e) { C_I = new CutImage(F_H(SelectImage.Text)); C_I.SetDelegado(new PasarDatos(CompletarDatos)); C_I.Activate(); C_I.Show(); }