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

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/2D_Graphics/Pixel&amp;diff=825&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/Pixel&amp;diff=825&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/Pixel&amp;diff=826&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/Pixel&amp;diff=826&amp;oldid=prev"/>
				<updated>2010-05-26T11:41:49Z</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;==BitMap Pixel Format==&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 Test&lt;br /&gt;
  {&lt;br /&gt;
    static void Main() &lt;br /&gt;
    {&lt;br /&gt;
      // Create two new bitmap images&lt;br /&gt;
      Bitmap bmp1 = new Bitmap(100, 100, PixelFormat.Format32bppArgb);&lt;br /&gt;
      Bitmap bmp2 = new Bitmap(100, 100, PixelFormat.Format24bppRgb);&lt;br /&gt;
      bool b1 = ((bmp1.PixelFormat &amp;amp; PixelFormat.Alpha) != 0);&lt;br /&gt;
      bool b2 = ((bmp2.PixelFormat &amp;amp; PixelFormat.Alpha) != 0);&lt;br /&gt;
      Console.WriteLine(&amp;quot;bmp1 has alpha?: &amp;quot; + b1);&lt;br /&gt;
      Console.WriteLine(&amp;quot;bmp2 has alpha?: &amp;quot; + b2);&lt;br /&gt;
      bmp1.Dispose();&lt;br /&gt;
      bmp2.Dispose();&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;
==Get Pixel information ==&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 gForm = e.Graphics;&lt;br /&gt;
      gForm.FillRectangle(Brushes.White, this.ClientRectangle);&lt;br /&gt;
      // Create a bitmap in memory&lt;br /&gt;
      Bitmap bmp = new Bitmap(6, 6);&lt;br /&gt;
      Graphics gBmp = Graphics.FromImage(bmp);&lt;br /&gt;
      gBmp.FillRectangle(Brushes.White, 0, 0, bmp.Width, bmp.Height);&lt;br /&gt;
      gBmp.DrawLine(Pens.Red, 0, 0, 5, 5);&lt;br /&gt;
      gForm.DrawImage(bmp, 20, 20, bmp.Width, bmp.Height);&lt;br /&gt;
      // Finally, get the pixel information&lt;br /&gt;
      for (int y = 0; y &amp;lt; bmp.Height; ++y)&lt;br /&gt;
      {&lt;br /&gt;
        for (int x = 0; x &amp;lt; bmp.Width; ++x)&lt;br /&gt;
        {&lt;br /&gt;
          Color c = bmp.GetPixel(x, y);&lt;br /&gt;
          Console.Write(&amp;quot;{0,2:x}{1,2:x}{2,2:x}{3,2:x}  &amp;quot;,&lt;br /&gt;
            c.A, c.R, c.G, c.G);&lt;br /&gt;
        }&lt;br /&gt;
        Console.WriteLine();&lt;br /&gt;
      }&lt;br /&gt;
      bmp.Dispose();&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>