<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2F2D%2FPath</id>
		<title>Csharp/CSharp Tutorial/2D/Path - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2F2D%2FPath"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/2D/Path&amp;action=history"/>
		<updated>2026-04-30T01:39:48Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/2D/Path&amp;diff=6324&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/2D/Path&amp;diff=6324&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:53Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/2D/Path&amp;diff=6325&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/2D/Path&amp;diff=6325&amp;oldid=prev"/>
				<updated>2010-05-26T12:18:46Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Close a figure and Create another figure==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Drawing.Drawing2D;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class Form1 : Form {&lt;br /&gt;
    protected override void OnPaint(PaintEventArgs e) {&lt;br /&gt;
    Graphics g = e.Graphics;&lt;br /&gt;
    g.FillRectangle(Brushes.White, this.ClientRectangle);&lt;br /&gt;
    GraphicsPath gp = new GraphicsPath();&lt;br /&gt;
    gp.AddLine(10, 10, 10, 50);&lt;br /&gt;
    gp.AddBezier(10, 50, 10, 55, 25, 70, 30, 70);&lt;br /&gt;
    gp.CloseFigure();&lt;br /&gt;
    gp.StartFigure();&lt;br /&gt;
    gp.AddLine(60, 110, 40, 160);&lt;br /&gt;
    g.DrawPath(Pens.Black, gp);&lt;br /&gt;
    gp.Dispose();&lt;br /&gt;
    }&lt;br /&gt;
    public static void Main() {&lt;br /&gt;
        Application.Run(new Form1());&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Draw Path and get mouse click==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Drawing.Drawing2D;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
public class DrawPathMouseClick : System.Windows.Forms.Form&lt;br /&gt;
{&lt;br /&gt;
  private System.ruponentModel.Container components = null;&lt;br /&gt;
  GraphicsPath myPath = new GraphicsPath();&lt;br /&gt;
  private bool isImageClicked = false;&lt;br /&gt;
  private int imageClickedIndex;&lt;br /&gt;
  public DrawPathMouseClick()&lt;br /&gt;
  {&lt;br /&gt;
    InitializeComponent();&lt;br /&gt;
    myPath.StartFigure();&lt;br /&gt;
    myPath.AddLine(new Point(150, 10), new Point(120, 150));&lt;br /&gt;
    myPath.AddArc(200, 200, 100, 100, 0, 90);&lt;br /&gt;
    Point point1 = new Point(250, 250);&lt;br /&gt;
    Point point2 = new Point(350, 275);&lt;br /&gt;
    Point point3 = new Point(350, 325);&lt;br /&gt;
    Point point4 = new Point(250, 350);&lt;br /&gt;
    Point[] points = {point1, point2, point3, point4};&lt;br /&gt;
    myPath.AddCurve(points);&lt;br /&gt;
    myPath.CloseFigure();&lt;br /&gt;
  }&lt;br /&gt;
  protected override void Dispose( bool disposing )&lt;br /&gt;
  {&lt;br /&gt;
    if( disposing )&lt;br /&gt;
    {&lt;br /&gt;
      if (components != null) &lt;br /&gt;
      {&lt;br /&gt;
        components.Dispose();&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    base.Dispose( disposing );&lt;br /&gt;
  }&lt;br /&gt;
  private void InitializeComponent()&lt;br /&gt;
  {&lt;br /&gt;
    this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
    this.ClientSize = new System.Drawing.Size(376, 361);&lt;br /&gt;
    this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.DrawPathMouseClick_MouseUp);&lt;br /&gt;
    this.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawPathMouseClick_Paint);&lt;br /&gt;
  }&lt;br /&gt;
  [STAThread]&lt;br /&gt;
  static void Main() &lt;br /&gt;
  {&lt;br /&gt;
    Application.Run(new DrawPathMouseClick());&lt;br /&gt;
  }&lt;br /&gt;
  private void DrawPathMouseClick_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    Point mousePt = new Point(e.X, e.Y);&lt;br /&gt;
    if(myPath.IsVisible(mousePt))&lt;br /&gt;
    {&lt;br /&gt;
      isImageClicked = true;&lt;br /&gt;
      imageClickedIndex = 3;&lt;br /&gt;
    }&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
      isImageClicked = false;&lt;br /&gt;
    }&lt;br /&gt;
    Invalidate();&lt;br /&gt;
  }&lt;br /&gt;
  private void DrawPathMouseClick_Paint(object sender, System.Windows.Forms.PaintEventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    Graphics g = e.Graphics;&lt;br /&gt;
    g.FillPath(Brushes.RoyalBlue, myPath);&lt;br /&gt;
    if(isImageClicked == true)&lt;br /&gt;
    {&lt;br /&gt;
      Pen outline = new Pen(Color.Purple, 5);&lt;br /&gt;
      switch(imageClickedIndex)&lt;br /&gt;
      {&lt;br /&gt;
        case 3:&lt;br /&gt;
          g.DrawPath(outline, myPath);&lt;br /&gt;
          break;&lt;br /&gt;
        default:&lt;br /&gt;
          break;&lt;br /&gt;
      }&lt;br /&gt;
    }      &lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==GraphicsPath.CloseFigure==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Drawing.Drawing2D;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class Form1 : Form {&lt;br /&gt;
    protected override void OnPaint(PaintEventArgs e) {&lt;br /&gt;
    Graphics g = e.Graphics;&lt;br /&gt;
    GraphicsPath gp = new GraphicsPath();&lt;br /&gt;
    gp.AddLine(10, 10, 110, 15);&lt;br /&gt;
    gp.AddLine(110, 15, 100, 96);&lt;br /&gt;
    gp.AddLine(100, 96, 15, 110);&lt;br /&gt;
    gp.CloseFigure();&lt;br /&gt;
    g.FillRectangle(Brushes.White, this.ClientRectangle);&lt;br /&gt;
    g.DrawPath(Pens.Black, gp);&lt;br /&gt;
    gp.Dispose();&lt;br /&gt;
    }&lt;br /&gt;
    public static void Main() {&lt;br /&gt;
        Application.Run(new Form1());&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>