Modify to take the amount to reduce red by as a parameter.

What will be an ideal response?


```
public void decreaseRed ( int percent )
{
Pixel [ ] pixelArray = this getPixel s ( ) ;
int red = 0 ;
double factor = 1 . 0 ยก ( percent/1 0 ) ;
// loop through a l l the pixels
for ( Pixel currPi x e l : pixe lArray )
{
red = currPixel.getRed ( ) ;
currPixel . setRed ( ( int ) ( red * factor ) ) ;
}
}
```

Computer Science & Information Technology

You might also like to view...

SWF files can be viewed by anyone with Flash Player installed on his or her computer.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The ability to snap a page to the left or right side of the screen so a second page can share the screen is a function of what feature?

A. Aero B. App multitasking C. side-by-side apps D. app tiling

Computer Science & Information Technology

________ is the vertical distance from the top to the bottom of a row

Fill in the blank(s) with correct word

Computer Science & Information Technology

After L2TP establishing a VPN tunnel, GRE is used to transmit L2TP data frames through the tunnel.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology