<?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%2FC_Sharp%2F2D_Graphics%2FPie</id>
		<title>Csharp/C Sharp/2D Graphics/Pie - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2F2D_Graphics%2FPie"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/2D_Graphics/Pie&amp;action=history"/>
		<updated>2026-04-29T16:43:27Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/2D_Graphics/Pie&amp;diff=819&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/2D_Graphics/Pie&amp;diff=819&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:19Z</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/C_Sharp/2D_Graphics/Pie&amp;diff=820&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/2D_Graphics/Pie&amp;diff=820&amp;oldid=prev"/>
				<updated>2010-05-26T11:41: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;==Arc Pie Demo==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
GDI+ Programming in C# and VB .NET&lt;br /&gt;
by Nick Symmonds&lt;br /&gt;
Publisher: Apress&lt;br /&gt;
ISBN: 159059035X&lt;br /&gt;
*/&lt;br /&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;
namespace MIsc2D_c&lt;br /&gt;
{&lt;br /&gt;
    /// &amp;lt;summary&amp;gt;&lt;br /&gt;
    /// Summary description for MIsc2D.&lt;br /&gt;
    /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
    public class MIsc2D : System.Windows.Forms.Form&lt;br /&gt;
    {&lt;br /&gt;
    private System.Windows.Forms.Label label1;&lt;br /&gt;
    private System.Windows.Forms.Label label2;&lt;br /&gt;
    private System.Windows.Forms.Label label3;&lt;br /&gt;
    private System.Windows.Forms.ListBox listBox1;&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Required designer variable.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        private System.ruponentModel.Container components = null;&lt;br /&gt;
        public MIsc2D()&lt;br /&gt;
        {&lt;br /&gt;
            //&lt;br /&gt;
            // Required for Windows Form Designer support&lt;br /&gt;
            //&lt;br /&gt;
            InitializeComponent();&lt;br /&gt;
            //&lt;br /&gt;
            // TODO: Add any constructor code after InitializeComponent call&lt;br /&gt;
            //&lt;br /&gt;
        }&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Clean up any resources being used.&lt;br /&gt;
        /// &amp;lt;/summary&amp;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;
        #region Windows Form Designer generated code&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// Required method for Designer support - do not modify&lt;br /&gt;
        /// the contents of this method with the code editor.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        private void InitializeComponent()&lt;br /&gt;
        {&lt;br /&gt;
      this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
      this.label2 = new System.Windows.Forms.Label();&lt;br /&gt;
      this.label3 = new System.Windows.Forms.Label();&lt;br /&gt;
      this.listBox1 = new System.Windows.Forms.ListBox();&lt;br /&gt;
      this.SuspendLayout();&lt;br /&gt;
      // &lt;br /&gt;
      // label1&lt;br /&gt;
      // &lt;br /&gt;
      this.label1.Location = new System.Drawing.Point(40, 280);&lt;br /&gt;
      this.label1.Name = &amp;quot;label1&amp;quot;;&lt;br /&gt;
      this.label1.Size = new System.Drawing.Size(160, 16);&lt;br /&gt;
      this.label1.TabIndex = 0;&lt;br /&gt;
      // &lt;br /&gt;
      // label2&lt;br /&gt;
      // &lt;br /&gt;
      this.label2.Location = new System.Drawing.Point(40, 296);&lt;br /&gt;
      this.label2.Name = &amp;quot;label2&amp;quot;;&lt;br /&gt;
      this.label2.Size = new System.Drawing.Size(160, 16);&lt;br /&gt;
      this.label2.TabIndex = 1;&lt;br /&gt;
      // &lt;br /&gt;
      // label3&lt;br /&gt;
      // &lt;br /&gt;
      this.label3.Location = new System.Drawing.Point(40, 312);&lt;br /&gt;
      this.label3.Name = &amp;quot;label3&amp;quot;;&lt;br /&gt;
      this.label3.Size = new System.Drawing.Size(160, 16);&lt;br /&gt;
      this.label3.TabIndex = 2;&lt;br /&gt;
      // &lt;br /&gt;
      // listBox1&lt;br /&gt;
      // &lt;br /&gt;
      this.listBox1.Location = new System.Drawing.Point(24, 200);&lt;br /&gt;
      this.listBox1.Name = &amp;quot;listBox1&amp;quot;;&lt;br /&gt;
      this.listBox1.Size = new System.Drawing.Size(192, 69);&lt;br /&gt;
      this.listBox1.TabIndex = 3;&lt;br /&gt;
      // &lt;br /&gt;
      // MIsc2D&lt;br /&gt;
      // &lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size(292, 373);&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {&lt;br /&gt;
                                                                  this.listBox1,&lt;br /&gt;
                                                                  this.label3,&lt;br /&gt;
                                                                  this.label2,&lt;br /&gt;
                                                                  this.label1});&lt;br /&gt;
      this.Name = &amp;quot;MIsc2D&amp;quot;;&lt;br /&gt;
      this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;&lt;br /&gt;
      this.Text = &amp;quot;MIsc2D&amp;quot;;&lt;br /&gt;
      this.Load += new System.EventHandler(this.MIsc2D_Load);&lt;br /&gt;
      this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
        #endregion&lt;br /&gt;
        /// &amp;lt;summary&amp;gt;&lt;br /&gt;
        /// The main entry point for the application.&lt;br /&gt;
        /// &amp;lt;/summary&amp;gt;&lt;br /&gt;
        [STAThread]&lt;br /&gt;
        static void Main() &lt;br /&gt;
        {&lt;br /&gt;
            Application.Run(new MIsc2D());&lt;br /&gt;
        }&lt;br /&gt;
    private void MIsc2D_Load(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
    &lt;br /&gt;
    }&lt;br /&gt;
    protected override void OnPaint(PaintEventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      Graphics G = e.Graphics;&lt;br /&gt;
      GraphicsPath p = new  GraphicsPath();&lt;br /&gt;
      PointF[] pts = { new PointF(50,  50),&lt;br /&gt;
                       new PointF(150, 25),&lt;br /&gt;
                       new PointF(200, 50)};&lt;br /&gt;
      p.AddCurve(pts);&lt;br /&gt;
      p.AddRectangle(new Rectangle(60, 60, 50, 50));&lt;br /&gt;
      p.AddPie(100, 100, 80, 80, 0, 35);&lt;br /&gt;
      G.DrawPath(Pens.Black,p);&lt;br /&gt;
      GraphicsPathIterator iter = new GraphicsPathIterator(p);&lt;br /&gt;
      label1.Text = &amp;quot;Num pts in path = &amp;quot; + iter.Count.ToString();&lt;br /&gt;
      label2.Text = &amp;quot;Num subpaths in path = &amp;quot; + iter.SubpathCount.ToString();&lt;br /&gt;
      label3.Text = &amp;quot;Path has curve = &amp;quot; + iter.HasCurve().ToString();&lt;br /&gt;
      int StartIndex;&lt;br /&gt;
      int EndIndex;&lt;br /&gt;
      int i;&lt;br /&gt;
      bool IsClosed; &lt;br /&gt;
      // Rewind the Iterator.&lt;br /&gt;
      iter.Rewind();&lt;br /&gt;
      // List the Subpaths.&lt;br /&gt;
      for(i=0;i&amp;lt;iter.SubpathCount;i++) {&lt;br /&gt;
        iter.NextSubpath(out StartIndex, out EndIndex, out IsClosed);&lt;br /&gt;
        listBox1.Items.Add(&amp;quot;Start: &amp;quot; + StartIndex.ToString() +&lt;br /&gt;
                           &amp;quot;  End: &amp;quot; + EndIndex.ToString() +&lt;br /&gt;
                           &amp;quot;  IsClosed: &amp;quot; + IsClosed.ToString());&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Draw a pie==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&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;
using System.Drawing.Drawing2D;&lt;br /&gt;
public class Form1 : System.Windows.Forms.Form{&lt;br /&gt;
  private System.ruponentModel.Container components = null;&lt;br /&gt;
  public Form1(){&lt;br /&gt;
    InitializeComponent();&lt;br /&gt;
        SetStyle(ControlStyles.Opaque, true);&lt;br /&gt;
  }&lt;br /&gt;
  protected override void Dispose( bool disposing ){&lt;br /&gt;
    if( disposing ){&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;
    protected override void OnPaint(PaintEventArgs e) {&lt;br /&gt;
         Graphics g = e.Graphics;&lt;br /&gt;
         g.FillRectangle(Brushes.White, ClientRectangle);&lt;br /&gt;
         g.FillPie(Brushes.Chartreuse, new Rectangle(60, 60, 50, 50), 90, 210);&lt;br /&gt;
    }&lt;br /&gt;
  private void InitializeComponent(){&lt;br /&gt;
    this.ruponents = new System.ruponentModel.Container();&lt;br /&gt;
    this.Size = new System.Drawing.Size(300,300);&lt;br /&gt;
    this.Text = &amp;quot;Form1&amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
  static void Main() {&lt;br /&gt;
    Application.Run(new Form1());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>