using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ÇİZGİ_DAİRE
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Graphics g;
private void
Form1_Load(object sender, EventArgs e)
{
}
private void
button1_Click(object sender, EventArgs e)
{
Pen kalem = new Pen(Color.Red,5);
Pen kalem1 = new Pen(Color.Black,5);
Pen kalem2 = new Pen(Color.Yellow,
5);
Pen kalem3 = new Pen(Color.Green,
5);
Pen kalem4 = new Pen(Color.Blue,
5);
g
= this.CreateGraphics();
g.DrawEllipse(kalem,5,5,50,50);
g.DrawEllipse(kalem, 65,5, 50, 50);
// g.DrawEllipse(kalem, 125, 5, 50, 50);
//g.DrawEllipse(kalem, 185, 5, 50, 50);
g.DrawEllipse(kalem, 245, 5, 50, 50);
g.DrawEllipse(kalem, 305, 5, 50, 50);
//g.DrawEllipse(kalem1, 5, 65, 50, 50);
//g.DrawEllipse(kalem1, 65, 65, 50, 50);
g.DrawEllipse(kalem1, 125, 65, 50, 50);
g.DrawEllipse(kalem1, 185, 65, 50, 50);
//g.DrawEllipse(kalem1, 245, 65, 50, 50);
//g.DrawEllipse(kalem1, 305, 65, 50, 50);
// g.DrawEllipse(kalem2, 5, 125, 50, 50);
g.DrawEllipse(kalem2, 65, 125, 50, 50);
g.DrawEllipse(kalem2, 125, 125, 50, 50);
g.DrawEllipse(kalem2, 185, 125, 50, 50);
g.DrawEllipse(kalem2, 245, 125, 50, 50);
// g.DrawEllipse(kalem2, 305, 125, 50, 50);
//g.DrawEllipse(kalem3, 5, 185, 50, 50);
//g.DrawEllipse(kalem3, 65, 185, 50, 50);
g.DrawEllipse(kalem3, 125, 185, 50, 50);
g.DrawEllipse(kalem3, 185, 185, 50, 50);
//g.DrawEllipse(kalem3, 245, 185, 50, 50);
// g.DrawEllipse(kalem3, 305, 185, 50, 50);
g.DrawEllipse(kalem4, 5, 245, 50, 50);
g.DrawEllipse(kalem4, 65, 245, 50, 50);
// g.DrawEllipse(kalem4, 125, 245, 50, 50);
// g.DrawEllipse(kalem4, 185, 245, 50, 50);
g.DrawEllipse(kalem4, 245, 245, 50, 50);
g.DrawEllipse(kalem4, 305, 245, 50, 50);
}
}
}
Hiç yorum yok:
Yorum Gönder