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

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/2D/Draw_Image&amp;diff=6322&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/Draw_Image&amp;diff=6322&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/Draw_Image&amp;diff=6323&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/Draw_Image&amp;diff=6323&amp;oldid=prev"/>
				<updated>2010-05-26T12:18:45Z</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;==Resize a bitmap in drawing==&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.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Drawing.Drawing2D;&lt;br /&gt;
public class DoubleBuffering : Form&lt;br /&gt;
{&lt;br /&gt;
    public DoubleBuffering()&lt;br /&gt;
    {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
        image = Image.FromFile(&amp;quot;YourFile.bmp&amp;quot;);&lt;br /&gt;
        tmrRefresh.Start();&lt;br /&gt;
    }&lt;br /&gt;
    private int imageSize = 0;&lt;br /&gt;
    private Image image;&lt;br /&gt;
    private void tmrRefresh_Tick(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        imageSize++;&lt;br /&gt;
        this.Invalidate();&lt;br /&gt;
    }&lt;br /&gt;
    private void DoubleBuffering_Paint(object sender, PaintEventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        Graphics g;&lt;br /&gt;
        g = e.Graphics;&lt;br /&gt;
        g.SmoothingMode = SmoothingMode.HighQuality;&lt;br /&gt;
        g.FillRectangle(Brushes.Yellow, new Rectangle(new Point(0, 0),this.ClientSize));&lt;br /&gt;
        g.DrawImage(image, 50, 50, 50 + imageSize, 50 + imageSize);&lt;br /&gt;
    }&lt;br /&gt;
    private void chkUseDoubleBuffering_CheckedChanged(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        this.DoubleBuffered = chkUseDoubleBuffering.Checked;&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.SetCompatibleTextRenderingDefault(false);&lt;br /&gt;
        Application.Run(new DoubleBuffering());&lt;br /&gt;
    }&lt;br /&gt;
    private System.ruponentModel.IContainer components = null;&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
        this.ruponents = new System.ruponentModel.Container();&lt;br /&gt;
        this.tmrRefresh = new System.Windows.Forms.Timer(this.ruponents);&lt;br /&gt;
        this.chkUseDoubleBuffering = new System.Windows.Forms.CheckBox();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        // &lt;br /&gt;
        // tmrRefresh&lt;br /&gt;
        // &lt;br /&gt;
        this.tmrRefresh.Tick += new System.EventHandler(this.tmrRefresh_Tick);&lt;br /&gt;
        // &lt;br /&gt;
        // chkUseDoubleBuffering&lt;br /&gt;
        // &lt;br /&gt;
        this.chkUseDoubleBuffering.AutoSize = true;&lt;br /&gt;
        this.chkUseDoubleBuffering.Location = new System.Drawing.Point(12, 3);&lt;br /&gt;
        this.chkUseDoubleBuffering.Size = new System.Drawing.Size(127, 17);&lt;br /&gt;
        this.chkUseDoubleBuffering.TabIndex = 0;&lt;br /&gt;
        this.chkUseDoubleBuffering.Text = &amp;quot;Use Double Buffering&amp;quot;;&lt;br /&gt;
        this.chkUseDoubleBuffering.UseVisualStyleBackColor = true;&lt;br /&gt;
        this.chkUseDoubleBuffering.CheckedChanged += new System.EventHandler(this.chkUseDoubleBuffering_CheckedChanged);&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(299, 277);&lt;br /&gt;
        this.Controls.Add(this.chkUseDoubleBuffering);&lt;br /&gt;
        this.Text = &amp;quot;Double Buffering&amp;quot;;&lt;br /&gt;
        this.Paint += new System.Windows.Forms.PaintEventHandler(this.DoubleBuffering_Paint);&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
        this.PerformLayout();&lt;br /&gt;
    }&lt;br /&gt;
    private System.Windows.Forms.Timer tmrRefresh;&lt;br /&gt;
    private System.Windows.Forms.CheckBox chkUseDoubleBuffering;&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Thumbnail Image Creation==&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.Drawing;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class ThumbnailImageCreation : Form&lt;br /&gt;
{&lt;br /&gt;
    public ThumbnailImageCreation()&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(299, 273);&lt;br /&gt;
        this.Text = &amp;quot;Thumbnails&amp;quot;;&lt;br /&gt;
        this.Paint += new System.Windows.Forms.PaintEventHandler(this.ThumbnailImageCreation_Paint);&lt;br /&gt;
        this.Load += new System.EventHandler(this.ThumbnailImageCreation_Load);&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
    }&lt;br /&gt;
    Image thumbnail;&lt;br /&gt;
    private void ThumbnailImageCreation_Load(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        Image img = Image.FromFile(&amp;quot;YourFile.jpg&amp;quot;);&lt;br /&gt;
        &lt;br /&gt;
        int thumbnailWidth = 200, thumbnailHeight = 100;&lt;br /&gt;
        thumbnail = img.GetThumbnailImage(thumbnailWidth, thumbnailHeight,&lt;br /&gt;
          null, IntPtr.Zero);&lt;br /&gt;
        &lt;br /&gt;
    }&lt;br /&gt;
    private void ThumbnailImageCreation_Paint(object sender, PaintEventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        e.Graphics.DrawImage(thumbnail, 10, 10);&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.SetCompatibleTextRenderingDefault(false);&lt;br /&gt;
        Application.Run(new ThumbnailImageCreation());&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>