That loop only ever looks at a single pixel in a single image. To see that try:



Rectangle rectangle = new Rectangle(0, 0, 1365, 770);
{
while(true)
{
...