Consider an image that is 25 x 10 pixels in size.

for (Pixel pix : image.getPixels())
{
    pix.setRed(0);
}

how many Pixel objects would have their "Red" value set to 0?

All 250 Pixel objects
  • 249 Pixel objects, excluding the object at (0, 0)
  • 216 Pixel objects, since rows go from 0-9 and columns go from 0-24.
  • This loop would not run

There are no hints for this question