Question: Creating a Negative / * Method to negate the picture * / public void negate ( ) { Pixel [ ] pixelArray = this.getPixels (
Creating a Negative
Method to negate the picture
public void negate
Pixel pixelArray this.getPixels;
Pixel pixel null;
int redValue, blueValue, greenValue ; for int i ; i pixelArray.length; i
pixel pixelArrayi;
redValue pixel.getRed;
greenValue pixel.getGreen;
blueValue pixel.getBlue;
pixel.setColornew Color redValue, greenValue,
blueValue;
explain the code kindly
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
