Ejemplo n.º 1
0
 private void button7_Click(object sender, EventArgs e)
 {
     if (pb != null)
     {
         pb.Clear(Color.White);
     }
     iniGraf();
     t = new Transformacion();
     t.reflejarR();
     ot.ListaPoligonos = t.multObj2(o, t.Matrix);
     l.dibujar2(pb, esc, pictureBox1.Height, pictureBox1.Width);
 }
Ejemplo n.º 2
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (textBox1.Text != "")
     {
         if (pb != null)
         {
             pb.Clear(Color.White);
         }
         iniGraf();
         float x = float.Parse(textBox1.Text);
         t = new Transformacion();
         t.rotar(x);
         ot.ListaPoligonos = t.multObj2(o, t.Matrix);
         l.dibujar2(pb, esc, pictureBox1.Height, pictureBox1.Width);
     }
 }