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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!