Question: I'm confuzzled. I tried writing a 'stormy-sky' program to replace the blue sky with overcast-grey in my pictures. The algorithm is pretty simple: For each
I'm confuzzled. I tried writing a 'stormy-sky' program to replace the blue sky with overcast-grey in my pictures. The algorithm is pretty simple: For each Pixel within the Picture, check if the colour matches java.awt.Color.blue. If it matches, set the new red, green, and blue all to 128 (i.e. grey) And yet, when I try running it and displaying the result, the final Picture looks identical to what I started with! What's the most likely problem? In plain English, briefly describe what my process should be for fixing it!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
