
Hi i have a bmp loaded to a BMP object and im requir
You cold use a Linq selection to obtain a IEnumerable object:
var pixelColors =
from x in Enumerable.Range(0, bmp.Width - 1)
from y in Enumerable.Range(0, bmp.Height - 1)
select bmp.GetPixel(x, y);
...then iterate on the IEnumerable (using implicit typing):
foreach(var color in pixelColors)
{
//do stuff on RGB values, etc...
}