<?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%2FClip</id>
		<title>Csharp/CSharp Tutorial/2D/Clip - История изменений</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%2FClip"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/2D/Clip&amp;action=history"/>
		<updated>2026-04-30T01:39:22Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/2D/Clip&amp;diff=6358&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/Clip&amp;diff=6358&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/Clip&amp;diff=6359&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/Clip&amp;diff=6359&amp;oldid=prev"/>
				<updated>2010-05-26T12:18:50Z</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;==Intersects With Clip Rectangle of Graphics==&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.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;
    SizeF sizeF = g.MeasureString(&amp;quot;Test&amp;quot;, this.Font);&lt;br /&gt;
    StringFormat sf = new StringFormat();&lt;br /&gt;
    sf.LineAlignment = StringAlignment.Center;&lt;br /&gt;
    int cellHeight = (int)sizeF.Height + 4;&lt;br /&gt;
    int cellWidth = 80;&lt;br /&gt;
    int nbrColumns = 50;&lt;br /&gt;
    int nbrRows = 50;&lt;br /&gt;
    for (int row = 0; row &amp;lt; nbrRows; ++row)&lt;br /&gt;
    {&lt;br /&gt;
      for (int col = 0; col &amp;lt; nbrColumns; ++col)&lt;br /&gt;
      {&lt;br /&gt;
        Point cellLocation = new Point(col * cellWidth,  row * cellHeight);&lt;br /&gt;
        Rectangle cellRect = new Rectangle(cellLocation.X, cellLocation.Y, cellWidth, cellHeight);&lt;br /&gt;
        if (cellRect.IntersectsWith(e.ClipRectangle)){&lt;br /&gt;
          Console.WriteLine(&amp;quot;Row:{0} Col:{1}&amp;quot;, row, col);&lt;br /&gt;
          g.FillRectangle(Brushes.LightGray, cellRect);&lt;br /&gt;
          g.DrawRectangle(Pens.Black, cellRect);&lt;br /&gt;
          String s = String.Format(&amp;quot;{0},{1}&amp;quot;, col, row);&lt;br /&gt;
          g.DrawString(s, this.Font, Brushes.Black, cellRect, sf);&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    }&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;
==Set clipping region==&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.AddString(&amp;quot;Swirly&amp;quot;, new FontFamily(&amp;quot;Times New Roman&amp;quot;), (int)(FontStyle.Bold | FontStyle.Italic), 144, new Point(5, 5), StringFormat.GenericTypographic);&lt;br /&gt;
        g.SetClip(gp);&lt;br /&gt;
        g.DrawImage(new Bitmap(&amp;quot;swirly.jpg&amp;quot;), this.ClientRectangle);&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>