introduccion a los graficos

1
INTRODUCCION A LOS GRAFICOS using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Introduccion_a_los_Graficos { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { } private void button1_Click(object sender, EventArgs e) { Graphics papel; papel = pictureBox1.CreateGraphics(); Pen lápiz = new Pen(Color.Black); papel.DrawLine(lápiz, 20, 40, 180, 40); papel.DrawLine(lápiz, 100, 40, 100, 200); } } }

Upload: juan-karloz

Post on 16-Dec-2015

215 views

Category:

Documents


1 download

DESCRIPTION

programacion

TRANSCRIPT

  • INTRODUCCION A LOS GRAFICOS

    using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace Introduccion_a_los_Graficos{

    public partial class Form1 : Form{

    public Form1(){

    InitializeComponent();}private void Form1_Load(object sender, EventArgs e){}private void button1_Click(object sender, EventArgs e){

    Graphics papel;papel = pictureBox1.CreateGraphics();Pen lpiz = new Pen(Color.Black);papel.DrawLine(lpiz, 20, 40, 180, 40);papel.DrawLine(lpiz, 100, 40, 100, 200);

    }}

    }