Question: To start off, add a new method to the TransformablePicture class called adjustPixel(). This method should not return a value. It should take a pixel
"To start off, add a new method to the TransformablePicture class called adjustPixel(). This method should not return a value. It should take a pixel and an integer amount as parameters. It should simply change the RGB color value of the pixel by adding the specified amount to each of the red, green, and blue components of the pixel's color. This is a simple method to get started, and will be used as a building block in other methods."
How can I add the parameters of pixel and integer amount? No fields are declared and I am confused about how adding parameters work
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
