private void button5_Click(object sender, EventArgs e) { Bitmap bmp = new Bitmap(640, 480); //segmento s = new segmento(); //s.X0 = -5; //s.Y0 = 2; //s.xf = -5; //s.yf = -4; //s.encender(ref bmp); //segmento s2 = new segmento(); //s2.X0 = -4; //s2.Y0 = -5; //s2.xf = 4; //s2.yf = 5; //s2.encender(ref bmp); //segmento2(-5, 2, -5, -4, ref bmp); //segmento2(5, 2, 5, -4, ref bmp); //segmento2(-5, -4, 5, -4, ref bmp); //segmento2(-5, 2, 5, 2, ref bmp); //segmento2(-5, -4, 5, 2, ref bmp); //segmento2(5, -4, -5, 2, ref bmp); //segmento2(-5, 2, 0, 6, ref bmp); //segmento2(5, 2, 0, 6, ref bmp); //segmento2(6, -2, 6, -4, ref bmp); //segmento2(-10, -7.5, 10, 7.5, ref bmp); //circunferencia arriba circunferencia c = new circunferencia(); c.x0 = 0; c.y0 = 4; c.RD = 1; c.EncenderC(ref bmp); //circunferencia lado circunferencia c2 = new circunferencia(); c2.x0 = 5; c2.y0 = 0; c2.RD = 1; // c2.EncenderC(ref bmp); //lazo abajo lazo l = new lazo(); l.x0 = 6; l.y0 = -2; l.RD = 0.5; l.encender_lazo(ref bmp); // pictureBox1.Image = bmp; //lazo lateral lazo l2 = new lazo(); l2.x0 = -4; l2.y0 = 0; l2.RD = 2; //l2.encender_lazo(ref bmp); // pictureBox1.Image = bmp; }
private void laso_Click(object sender, EventArgs e) { Bitmap bmp = new Bitmap(640, 480); lazo l = new lazo(); l.x0 = -3; l.y0 = 1; l.RD = 4; l.encender_lazo(ref bmp); pictureBox1.Image = bmp; }