Question: These are the public methods in the class Pixel that you can use: getRed(): int setRed(red:int) getBlue(): int setBlue(blue:int) getGreen(): int setGreen(green:int) getX(): int getY():
These are the public methods in the class Pixel that you can use: getRed(): int setRed(red:int) getBlue(): int setBlue(blue:int) getGreen(): int setGreen(green:int) getX(): int getY(): int getColor(): Color setColor(newColor:Color) toString():String getAverage(): double (average of the red, blue, & green values)
Your first task is to write a method that composes a picture using at least four different pictures and applying at least three of the methods to those pictures (scale, increaseRed, etc.) Do some sketching below about how youd like your picture to look. public Picture myComposition() { //create your picture using one of the techniques above Picture myPic = //When youre done, return it like this: return myPic; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
