Take a picture of a person and mirror just their top part to their bottom part (two heads, with one at either end).

What will be an ideal response?


```
public void mirrorHorizRange ( int s tartX , int endX ,
int mirrorPoint)
{
Pixel topPixel = null;
Pixel botPixel = null ;
int count = 0 ;
// l o o p t h r o u g h t h e rows t i l l t h e mirro r p o i n t
for ( int y = 0 ; y < mirrorPoint ; y++)
{
for ( int x = s t a r t X ; x < endX ; x++)
{
top Pixel = this . g e t P i x e l ( x , y ) ;
botPixel = this . getPixel ( x ,
this . getHeight ( ) ? 1 ? y ) ;
botPixel.setColor (top Pixel.getColor());
}
}
}
```

Computer Science & Information Technology

You might also like to view...

Flash can convert a bitmap to a(n) ____.

a. index b. vector c. bullet d. matrix

Computer Science & Information Technology

A compact flash card uses flash memory, which requires a battery to keep the data saved to it

Indicate whether the statement is true or false

Computer Science & Information Technology

To recover from deadlock, a factor that is commonly considered when selecting a victim is the CPU time used by a job - jobs close to completion are usually left alone.

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

Computer Science & Information Technology

You can create e-mail signatures for multiple accounts.

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

Computer Science & Information Technology