Exception on traveling through pixels BMP C#
<p>Im using the following code to travel though the pixels of a BMP as this </p>

<p><img src="http://i.stack.imgur.com/jLPvv.png" alt="enter image description here"></p>

<pre><code>for (int i = 0; i &lt;= Image.Width; i++)
 {
    for (int j = 0; j &lt;= Image.Height; j++)
    {
              color = Image.GetPixel(i, j); //get 
    }

 }
</code></pre>

<p>but im getting a exception </p>

<pre><code>System.ArgumentOutOfRangeException was unhandled
  Message="Parameter must be positive and &lt; Height.\r\nParameter name: y"
  Source="System.Drawing"
  ParamName="y"
</code></pre>

<p>I have no clue why im getting this.. im using a <code>BMP</code> with valid heights and same code with hard-coded values working correctly </p>

<p>@Odded</p>

<p>No:1 Shows what i needed  and no 2 is whats happening with ur code any idea?</p>

<p><img src="http://i.stack.imgur.com/m4C1T.png" alt="enter image description here"> </p>
