<?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%2FRegion_Clip</id>
		<title>Csharp/C Sharp/2D Graphics/Region Clip - История изменений</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%2FRegion_Clip"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/2D_Graphics/Region_Clip&amp;action=history"/>
		<updated>2026-04-29T19:06:53Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/2D_Graphics/Region_Clip&amp;diff=887&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/Region_Clip&amp;diff=887&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/Region_Clip&amp;diff=888&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/Region_Clip&amp;diff=888&amp;oldid=prev"/>
				<updated>2010-05-26T11:42:11Z</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;==Clip many shapes==&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.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.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Drawing.Drawing2D;&lt;br /&gt;
public class Form1 : Form&lt;br /&gt;
{&lt;br /&gt;
    private System.Windows.Forms.CheckBox chkClipping;&lt;br /&gt;
  public Form1() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
  }&lt;br /&gt;
  private void checkBox1_CheckedChanged(object sender, EventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    Invalidate();&lt;br /&gt;
  }  &lt;br /&gt;
  private void Form1_Paint(object sender, PaintEventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;&lt;br /&gt;
    GraphicsPath path = new GraphicsPath();&lt;br /&gt;
    &lt;br /&gt;
    Region clippingRegion = new Region(path);&lt;br /&gt;
    if (chkClipping.Checked) e.Graphics.Clip = clippingRegion;&lt;br /&gt;
    e.Graphics.ResetClip();&lt;br /&gt;
    &lt;br /&gt;
    path = new GraphicsPath();&lt;br /&gt;
    path.AddString(&amp;quot;www.nfex.ru&amp;quot;, new FontFamily(&amp;quot;Verdana&amp;quot;), 0, 70, new Point(10, 130), new StringFormat());&lt;br /&gt;
    e.Graphics.DrawPath(Pens.Blue, path);&lt;br /&gt;
    clippingRegion = new Region(path);&lt;br /&gt;
    if (chkClipping.Checked) e.Graphics.Clip = clippingRegion;&lt;br /&gt;
    for (int i = 0; i &amp;lt; 40; i++)&lt;br /&gt;
    {&lt;br /&gt;
      e.Graphics.DrawEllipse(Pens.Red, 180 - i*3, 180 - i*3, i*6, i*6);      &lt;br /&gt;
    }&lt;br /&gt;
    clippingRegion.Dispose();&lt;br /&gt;
    path.Dispose();&lt;br /&gt;
  }&lt;br /&gt;
  private void InitializeComponent()&lt;br /&gt;
  {&lt;br /&gt;
    this.chkClipping = new System.Windows.Forms.CheckBox();&lt;br /&gt;
    this.SuspendLayout();&lt;br /&gt;
    // &lt;br /&gt;
    // chkClipping&lt;br /&gt;
    // &lt;br /&gt;
    this.chkClipping.AutoSize = true;&lt;br /&gt;
    this.chkClipping.Checked = true;&lt;br /&gt;
    this.chkClipping.CheckState = System.Windows.Forms.CheckState.Checked;&lt;br /&gt;
    this.chkClipping.Location = new System.Drawing.Point(12, 300);&lt;br /&gt;
    this.chkClipping.Name = &amp;quot;chkClipping&amp;quot;;&lt;br /&gt;
    this.chkClipping.Size = new System.Drawing.Size(80, 17);&lt;br /&gt;
    this.chkClipping.TabIndex = 0;&lt;br /&gt;
    this.chkClipping.Text = &amp;quot;Use Clipping&amp;quot;;&lt;br /&gt;
    this.chkClipping.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);&lt;br /&gt;
    // &lt;br /&gt;
    // Form1&lt;br /&gt;
    // &lt;br /&gt;
    this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
    this.ClientSize = new System.Drawing.Size(292, 329);&lt;br /&gt;
    this.Controls.Add(this.chkClipping);&lt;br /&gt;
    this.Font = new System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));&lt;br /&gt;
    this.Name = &amp;quot;Form1&amp;quot;;&lt;br /&gt;
    this.Text = &amp;quot;Clipping&amp;quot;;&lt;br /&gt;
    this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);&lt;br /&gt;
    this.ResumeLayout(false);&lt;br /&gt;
    this.PerformLayout();&lt;br /&gt;
  }&lt;br /&gt;
  [STAThread]&lt;br /&gt;
  static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    Application.EnableVisualStyles();&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;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Text region clips shape==&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.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.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Drawing.Drawing2D;&lt;br /&gt;
public class Form1 : Form&lt;br /&gt;
{&lt;br /&gt;
    private System.Windows.Forms.CheckBox chkClipping;&lt;br /&gt;
  public Form1() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
  }&lt;br /&gt;
  private void checkBox1_CheckedChanged(object sender, EventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    Invalidate();&lt;br /&gt;
  }  &lt;br /&gt;
  private void Form1_Paint(object sender, PaintEventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;&lt;br /&gt;
    Rectangle rectangle = new Rectangle(10, 10, 250, 50);&lt;br /&gt;
    GraphicsPath path = new GraphicsPath();&lt;br /&gt;
    path.AddEllipse(rectangle);&lt;br /&gt;
    e.Graphics.DrawPath(Pens.Red, path);&lt;br /&gt;
    &lt;br /&gt;
    Region clippingRegion = new Region(path);&lt;br /&gt;
    if (chkClipping.Checked) e.Graphics.Clip = clippingRegion;&lt;br /&gt;
    e.Graphics.DrawString(&amp;quot;www.nfex.ru&amp;quot;,new Font(&amp;quot;Verdana&amp;quot;, 36, FontStyle.Bold), Brushes.Black, 10, 10);&lt;br /&gt;
    clippingRegion.Dispose();&lt;br /&gt;
    path.Dispose();&lt;br /&gt;
  }&lt;br /&gt;
  private void InitializeComponent()&lt;br /&gt;
  {&lt;br /&gt;
    this.chkClipping = new System.Windows.Forms.CheckBox();&lt;br /&gt;
    this.SuspendLayout();&lt;br /&gt;
    // &lt;br /&gt;
    // chkClipping&lt;br /&gt;
    // &lt;br /&gt;
    this.chkClipping.AutoSize = true;&lt;br /&gt;
    this.chkClipping.Checked = true;&lt;br /&gt;
    this.chkClipping.CheckState = System.Windows.Forms.CheckState.Checked;&lt;br /&gt;
    this.chkClipping.Location = new System.Drawing.Point(12, 300);&lt;br /&gt;
    this.chkClipping.Name = &amp;quot;chkClipping&amp;quot;;&lt;br /&gt;
    this.chkClipping.Size = new System.Drawing.Size(80, 17);&lt;br /&gt;
    this.chkClipping.TabIndex = 0;&lt;br /&gt;
    this.chkClipping.Text = &amp;quot;Use Clipping&amp;quot;;&lt;br /&gt;
    this.chkClipping.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);&lt;br /&gt;
    // &lt;br /&gt;
    // Form1&lt;br /&gt;
    // &lt;br /&gt;
    this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
    this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
    this.ClientSize = new System.Drawing.Size(292, 329);&lt;br /&gt;
    this.Controls.Add(this.chkClipping);&lt;br /&gt;
    this.Font = new System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));&lt;br /&gt;
    this.Name = &amp;quot;Form1&amp;quot;;&lt;br /&gt;
    this.Text = &amp;quot;Clipping&amp;quot;;&lt;br /&gt;
    this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);&lt;br /&gt;
    this.ResumeLayout(false);&lt;br /&gt;
    this.PerformLayout();&lt;br /&gt;
  }&lt;br /&gt;
  [STAThread]&lt;br /&gt;
  static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    Application.EnableVisualStyles();&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>