<?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_by_API%2FSystem.Drawing.Drawing2D%2FPathGradientBrush</id>
		<title>Csharp/C Sharp by API/System.Drawing.Drawing2D/PathGradientBrush - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Drawing.Drawing2D%2FPathGradientBrush"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Drawing.Drawing2D/PathGradientBrush&amp;action=history"/>
		<updated>2026-04-29T23:17:24Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Drawing.Drawing2D/PathGradientBrush&amp;diff=4300&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_by_API/System.Drawing.Drawing2D/PathGradientBrush&amp;diff=4300&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:35Z</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_by_API/System.Drawing.Drawing2D/PathGradientBrush&amp;diff=4301&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Drawing.Drawing2D/PathGradientBrush&amp;diff=4301&amp;oldid=prev"/>
				<updated>2010-05-26T12:10:28Z</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;==new PathGradientBrush(GraphicsPath path)==&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;
  public Form1() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
  }&lt;br /&gt;
  private void Form1_Paint(object sender, PaintEventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
      GraphicsPath path = new GraphicsPath();&lt;br /&gt;
      int size = 150;&lt;br /&gt;
      path.AddEllipse(10, 10, size, size);&lt;br /&gt;
      &lt;br /&gt;
      PathGradientBrush brush = new PathGradientBrush(path);&lt;br /&gt;
      brush.WrapMode = WrapMode.Tile;&lt;br /&gt;
      brush.SurroundColors = new Color[] { Color.White };&lt;br /&gt;
      brush.CenterColor = Color.Violet;&lt;br /&gt;
      e.Graphics.FillRectangle(brush, 10, 10, size, size);&lt;br /&gt;
      &lt;br /&gt;
      path.Dispose();&lt;br /&gt;
      brush.Dispose();&lt;br /&gt;
  }&lt;br /&gt;
  private void InitializeComponent()&lt;br /&gt;
  {&lt;br /&gt;
    this.SuspendLayout();&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, 266);&lt;br /&gt;
    this.Name = &amp;quot;Form1&amp;quot;;&lt;br /&gt;
    this.Text = &amp;quot;Alpha Blending&amp;quot;;&lt;br /&gt;
    this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);&lt;br /&gt;
    this.ResumeLayout(false);&lt;br /&gt;
  }&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;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==new PathGradientBrush(Path.PathPoints, WrapMode.Tile);==&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;
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 GradientWrap_c&lt;br /&gt;
{&lt;br /&gt;
    public class GradientWrap : System.Windows.Forms.Form&lt;br /&gt;
    {&lt;br /&gt;
        private System.ruponentModel.Container components = null;&lt;br /&gt;
        public GradientWrap()&lt;br /&gt;
        {&lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size(292, 273);&lt;br /&gt;
      this.Name = &amp;quot;GradientWrap&amp;quot;;&lt;br /&gt;
      this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;&lt;br /&gt;
      this.Text = &amp;quot;GradientWrap&amp;quot;;&lt;br /&gt;
      this.Load += new System.EventHandler(this.GradientWrap_Load);&lt;br /&gt;
        }&lt;br /&gt;
        static void Main() &lt;br /&gt;
        {&lt;br /&gt;
            Application.Run(new GradientWrap());&lt;br /&gt;
        }&lt;br /&gt;
    private void GradientWrap_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;
      GraphicsPath Path = new GraphicsPath();&lt;br /&gt;
      Rectangle R = new Rectangle(10, 10, 50, 50);&lt;br /&gt;
      e.Graphics.DrawRectangle(Pens.Black,R);&lt;br /&gt;
      Path.AddRectangle(R);&lt;br /&gt;
      &lt;br /&gt;
//      PathGradientBrush B = new PathGradientBrush(Path.PathPoints); &lt;br /&gt;
      PathGradientBrush B = new PathGradientBrush(Path.PathPoints, &lt;br /&gt;
        WrapMode.Tile);&lt;br /&gt;
      Color[] c = { Color.Blue, Color.Aqua, Color.Red };&lt;br /&gt;
      B.CenterColor = Color.White;&lt;br /&gt;
      B.SurroundColors = c;&lt;br /&gt;
      //Small circle inside gradient path&lt;br /&gt;
      e.Graphics.FillEllipse(B, 15, 15, 30, 30);&lt;br /&gt;
      //Large circle outside gradient path&lt;br /&gt;
      e.Graphics.FillEllipse(B, 50, 50, 150, 150);&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;
==PathGradientBrush.CenterColor==&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;
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.SmoothingMode = SmoothingMode.AntiAlias;&lt;br /&gt;
        PathGradientBrush pgb = new PathGradientBrush(gp);&lt;br /&gt;
        pgb.CenterColor = Color.White;&lt;br /&gt;
        pgb.SurroundColors = new Color[] { Color.Blue };&lt;br /&gt;
        g.FillPath(pgb, gp);&lt;br /&gt;
        g.DrawPath(Pens.Black, gp);&lt;br /&gt;
        pgb.Dispose();&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;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==PathGradientBrush.CenterPoint==&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.Drawing.Drawing2D;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
class BouncingGradientBrushBall : Form {&lt;br /&gt;
    public static void Main() {&lt;br /&gt;
        Application.Run(new BouncingGradientBrushBall());&lt;br /&gt;
    }&lt;br /&gt;
    public BouncingGradientBrushBall() {&lt;br /&gt;
        ResizeRedraw = true;&lt;br /&gt;
    }&lt;br /&gt;
    protected override void OnPaint(PaintEventArgs pea) {&lt;br /&gt;
        GraphicsPath path = new GraphicsPath();&lt;br /&gt;
        Rectangle rect = new Rectangle(10, 10, 30, 30);&lt;br /&gt;
        path.AddEllipse(rect);&lt;br /&gt;
        PathGradientBrush pgbrush = new PathGradientBrush(path);&lt;br /&gt;
        pgbrush.CenterPoint = new PointF((rect.Left + rect.Right) / 3,&lt;br /&gt;
                                         (rect.Top + rect.Bottom) / 3);&lt;br /&gt;
        pgbrush.CenterColor = Color.White;&lt;br /&gt;
        pgbrush.SurroundColors = new Color[] { Color.Red };&lt;br /&gt;
        pea.Graphics.FillRectangle(pgbrush, rect);&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;
==PathGradientBrush.SurroundColors==&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;
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.SmoothingMode = SmoothingMode.AntiAlias;&lt;br /&gt;
        PathGradientBrush pgb = new PathGradientBrush(gp);&lt;br /&gt;
        pgb.CenterColor = Color.White;&lt;br /&gt;
        pgb.SurroundColors = new Color[] { Color.Blue };&lt;br /&gt;
        g.FillPath(pgb, gp);&lt;br /&gt;
        g.DrawPath(Pens.Black, gp);&lt;br /&gt;
        pgb.Dispose();&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;
}&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>