1 Order Following Code Processing Image Pixels Picture Pic Queen Marypng Int X 0 X Picwidt Q37224826

1.In what order is the following code processing the imagepixels?

Picture pic(“queen-mary.png”);for (int x = 0; x < pic.width(); x++) { for (int y = 0; y < pic.height(); y++) { int red = pic.red(x, y); int green = pic.green(x, y); int blue = pic.blue(x, y); pic.set(x, y, 255 – red, 255 – green, 255 – blue);

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.