Im using the following code to travel though the pixels of a BMP as this

for (int i = 0; i <= Image.Width; i++)
{
for (int j = 0; j <= Image.Height; j++)
{
color = Image.GetPixel(i, j); //get
}
}
but im getting a exception
System.ArgumentOutOfRangeException was unhandled
Message="Parameter must be positive and < Height.\r\nParameter name: y"
Source="System.Drawing"
ParamName="y"
I have no clue why im getting this.. im using a BMP with valid heights and same code with hard-coded values working correctly
@Odded
No:1 Shows what i needed and no 2 is whats happening with ur code any idea?
Just change Height and Width. This is such an example of looking too far in your own code – this brings back so many memories..