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İ_EKSEN_DAİRE_KARE
{
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);
g
= this.CreateGraphics();
g.DrawLine(kalem, 40, 175, 310, 175);
g.DrawLine(kalem, 175, 40, 175, 310);
g.DrawRectangle(kalem1, 0, 155, 40, 40);
g.DrawRectangle(kalem1, 310, 155, 40, 40);
g.DrawRectangle(kalem1, 155, 0, 40, 40);
g.DrawRectangle(kalem1, 155, 310, 40, 40);
g.DrawRectangle(kalem1, 175, 175,2,2);
g.DrawRectangle(kalem1, 155, 155, 40, 40);
g.DrawRectangle(kalem1,135,135,80,80);
g.DrawRectangle(kalem1, 115, 115, 120, 120);
}
}
}
Hiç yorum yok:
Yorum Gönder