Take a picture of a person and mirror it so that the person looks like conjoined twins.
What will be an ideal response?
```
public Picture mirrorVertRange ( int mirrorPoint )
{
Pixel left = null;
Pixel right = null;
int resultWidth = ( mirrorPoint + 1) * 2;
Picture result =
new Picture ( resultWidth , this.getHeight ( ) );
Color resColor = null;
for ( int x =0; x <= mirrorPoint ; x++)
{
for ( int y = 0 ; y < this.getHeight ( ) ; y++)
{
left = this.getPixel (x , y );
right = result.getPixel ( resultWidth ¡ 1 ¡ x , y );
resColor = left.getColor ( );
right.setColor (resColor);
result. getPixel (x , y) . setColor (resColor) ;
}
}
return result ;
}
```
To test this do the following:
```
Picture p = new
Picture ( FileChooser.getMediaPath ( "KatieFancy . jpg " ) ) ;
Picture q =
p.mirrorVertRange (132) ;
q.show ( ) ;
```
You might also like to view...
A machine with _________ software can host numerous applications, including those that run on different operating systems, on a single platform.
Fill in the blank(s) with the appropriate word(s).
The item in the accompanying figure is a(n) ____ list.
A. ordered B. definition C. unordered D. baseline
The "Install-WindowsFeature NPAS -IncludeManagementTools" PowerShell cmdlet will install the Network Policy and Access Services server role.
Answer the following statement true (T) or false (F)
Relationships are implemented through matching fields.
Answer the following statement true (T) or false (F)