<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: compare code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 07 Sep 2008 07:21:21 GMT</pubDate>
    <description>DZone Snippets: compare code</description>
    <item>
      <title>Compare two bitmap objects</title>
      <link>http://snippets.dzone.com/posts/show/3883</link>
      <description>&lt;code&gt;&lt;br /&gt;        private bool PicsIdentical(Bitmap bmp1, Bitmap bmp2)&lt;br /&gt;        {&lt;br /&gt;            bool retVal = true;&lt;br /&gt;&lt;br /&gt;            if (bmp1.Size != bmp2.Size)&lt;br /&gt;                retVal = false;&lt;br /&gt;            else&lt;br /&gt;            {&lt;br /&gt;                for (int x = 0; x &lt; bmp1.Width; x++)&lt;br /&gt;                {&lt;br /&gt;                    for (int y = 0; y &lt; bmp1.Height; y++)&lt;br /&gt;                    {&lt;br /&gt;                        if (bmp1.GetPixel(x, y) != bmp2.GetPixel(x, y))&lt;br /&gt;                        {&lt;br /&gt;                            retVal = false;&lt;br /&gt;                            break;&lt;br /&gt;                        }&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;            return retVal;&lt;br /&gt;        }&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 24 Apr 2007 22:34:24 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/3883</guid>
      <author>mstampar (Miroslav Stampar)</author>
    </item>
  </channel>
</rss>
