we are using the java language and I am needing to modify a picture by removing the blue help!!: Create a static method called removeBlue that takes the instance of Picture as an argument and does not return a value. In the method, remove the blue color pane from the image by examining the red, green, and blue weights of each pixel in the image and setting the blue weight to 0. You will need to get the height and width of the image. There are methods in the Picture class to get the red, green, and blue weights individually and to get these weights using the Color object.
Is the Picture class one that your professor made? I did a quick search and didn't find it in the Java documentation.
There is definitely a way to do it without the Picture class, but the problem suggests that you use the picture class.
I honestly do not know, she had us import picture.java and an impage of dolpins and wants us to remove the blue from it
Okay. So you have picture.java. Do you have the source code for it? Like picture.src?
Even a Javadoc of the picture class will do.
We just need to know what methods inside it will help us. Do you know what I mean?
There's an image class...
Haha, I actually used pixel color manipulation with some random equations to make my profile picture... Which I don't think I'll ever change :)
I worked with the BufferedImage class.
Join our real-time social learning platform and learn together with your friends!