یک طراحی گرافیکی ساده هست که اگه کدشو بزنین متوجه میشین:
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;
using System.Drawing.Drawing2D;
namespace DrawingPath
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
protected override void OnPaint(PaintEventArgs e)
{
GraphicsPath path;
path = new GraphicsPath
(
new Point[]
{
new Point(10,10),
new Point(150,10),
new Point(200,150),
new Point(10,150),
new Point(200,160)
},
new byte[]
{
(byte)PathPointType.Start,
(byte)PathPointType.Line,
(byte)PathPointType.Line,
(byte)PathPointType.Line,
(byte)PathPointType.Line
}
);
e.Graphics.DrawPath(Pens.Blue, path);
}
}
}
علاقه مندی ها (Bookmarks)