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

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/2D_Graphics/Rotate&amp;diff=881&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/Rotate&amp;diff=881&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/Rotate&amp;diff=882&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/Rotate&amp;diff=882&amp;oldid=prev"/>
				<updated>2010-05-26T11:42:09Z</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;==Rotate by angles==&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.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;
  using System.Drawing.Imaging;&lt;br /&gt;
  public class Form1 : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    public Form1()&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&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(292, 273);&lt;br /&gt;
      this.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
      this.Resize += new System.EventHandler(this.Form1_Resize);&lt;br /&gt;
      this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);&lt;br /&gt;
    }&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new Form1());&lt;br /&gt;
    }&lt;br /&gt;
    private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)&lt;br /&gt;
    {      &lt;br /&gt;
      Graphics g = e.Graphics;&lt;br /&gt;
      g.FillRectangle(Brushes.White, this.ClientRectangle);&lt;br /&gt;
      Font f = new Font(&amp;quot;Times New Roman&amp;quot;, 16);&lt;br /&gt;
      for (float angle = 0; angle &amp;lt; 360; angle += 45)&lt;br /&gt;
      {&lt;br /&gt;
        g.ResetTransform();&lt;br /&gt;
        g.TranslateTransform(ClientRectangle.Width / 2,&lt;br /&gt;
                   ClientRectangle.Height / 2);&lt;br /&gt;
        g.RotateTransform(angle);&lt;br /&gt;
        g.DrawString(&amp;quot;www.nfex.ru&amp;quot;, f, Brushes.Black, 50, 0);&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    private void Form1_Resize(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      Invalidate();&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;
==Rotate the text 45 degrees==&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.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;
  using System.Drawing.Imaging;&lt;br /&gt;
  public class Form1 : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    public Form1()&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&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(292, 273);&lt;br /&gt;
      this.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
      this.Resize += new System.EventHandler(this.Form1_Resize);&lt;br /&gt;
      this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);&lt;br /&gt;
    }&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new Form1());&lt;br /&gt;
    }&lt;br /&gt;
    private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)&lt;br /&gt;
    {      &lt;br /&gt;
      Graphics g = e.Graphics;&lt;br /&gt;
      g.FillRectangle(Brushes.White, this.ClientRectangle);&lt;br /&gt;
      Font f = new Font(&amp;quot;Times New Roman&amp;quot;, 24);&lt;br /&gt;
      // Draw text to the surface&lt;br /&gt;
      g.DrawString(&amp;quot;www.nfex.ru&amp;quot;, f, Brushes.Black, 50, 50);&lt;br /&gt;
      // Rotate the text through 45 degrees&lt;br /&gt;
      g.RotateTransform(45);&lt;br /&gt;
      // Draw the rotated text&lt;br /&gt;
      g.DrawString(&amp;quot;www.nfex.ru&amp;quot;, f, Brushes.Black, 150, 50);&lt;br /&gt;
    }&lt;br /&gt;
    private void Form1_Resize(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      Invalidate();&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;
==Rotate Transform and Translate Transform==&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.Windows.Forms.VisualStyles;&lt;br /&gt;
using System.Drawing.Drawing2D;&lt;br /&gt;
using System.Drawing.Text;&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 SimpleStyleRenderer_Paint(object sender, PaintEventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      e.Graphics.TextRenderingHint = TextRenderingHint.AntiAliasGridFit;&lt;br /&gt;
      e.Graphics.TranslateTransform(this.Width / 2 - 100, this.Height / 2 - 100);&lt;br /&gt;
      DrawText(e.Graphics);&lt;br /&gt;
      e.Graphics.RotateTransform(45);&lt;br /&gt;
      DrawText(e.Graphics);&lt;br /&gt;
      e.Graphics.RotateTransform(75);&lt;br /&gt;
      DrawText(e.Graphics);&lt;br /&gt;
      e.Graphics.RotateTransform(160);&lt;br /&gt;
      DrawText(e.Graphics);&lt;br /&gt;
    }&lt;br /&gt;
    private void DrawText(Graphics g)&lt;br /&gt;
    {&lt;br /&gt;
      g.DrawString(&amp;quot;www.nfex.ru&amp;quot;, new Font(&amp;quot;Verdana&amp;quot;, 30, FontStyle.Bold),&lt;br /&gt;
        Brushes.Black, 0, 0); &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(600, 600);&lt;br /&gt;
      this.Name = &amp;quot;SimpleStyleRenderer&amp;quot;;&lt;br /&gt;
      this.Text = &amp;quot;SimpleStyleRenderer&amp;quot;;&lt;br /&gt;
      this.Paint += new System.Windows.Forms.PaintEventHandler(this.SimpleStyleRenderer_Paint);&lt;br /&gt;
      this.ResumeLayout(false);&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;
==Translate and Rotate the string==&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;
  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;
  using System.Drawing.Imaging;&lt;br /&gt;
  public class Form1 : System.Windows.Forms.Form&lt;br /&gt;
  {&lt;br /&gt;
    public Form1()&lt;br /&gt;
    {&lt;br /&gt;
      InitializeComponent();&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(292, 273);&lt;br /&gt;
      this.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
      this.Resize += new System.EventHandler(this.Form1_Resize);&lt;br /&gt;
      this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_Paint);&lt;br /&gt;
    }&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      Application.Run(new Form1());&lt;br /&gt;
    }&lt;br /&gt;
    private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)&lt;br /&gt;
    {      &lt;br /&gt;
      Graphics g = e.Graphics;&lt;br /&gt;
      g.FillRectangle(Brushes.White, this.ClientRectangle);&lt;br /&gt;
      Font f = new Font(&amp;quot;Times New Roman&amp;quot;, 24);&lt;br /&gt;
      g.DrawString(&amp;quot;www.nfex.ru&amp;quot;, f, Brushes.Black, 0, 0);&lt;br /&gt;
      g.TranslateTransform(150, 0);&lt;br /&gt;
      g.RotateTransform(45);&lt;br /&gt;
      // Draw the transformed text&lt;br /&gt;
      g.DrawString(&amp;quot;www.nfex.ru&amp;quot;, f, Brushes.Black, 0, 0);&lt;br /&gt;
    }&lt;br /&gt;
    private void Form1_Resize(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      Invalidate();&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>