Question: Using java Write a method changeBlue(weight). Do not change any color of the pixels in the first half of a picture. For the second half,
Using java

Write a method changeBlue(weight). Do not change any color of the pixels in the first half of a picture. For the second half, change blue value of each pixel by new blue=original blue * weight. For example, if a pixel has values (200,100,100) and weight is 0.5, then the new values will be (200JMM). If the weight is 1.5, then the new values will be (200,100,150). You can use any image to test this method. Write a method changeBlue(weight). Do not change any color of the pixels in the first half of a picture. For the second half, change blue value of each pixel by new blue=original blue * weight. For example, if a pixel has values (200,100,100) and weight is 0.5, then the new values will be (200JMM). If the weight is 1.5, then the new values will be (200,100,150). You can use any image to test this method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
