Write a function to mirror along the diagonal from (0, 0) to (width, height).

What will be an ideal response?


```
def mirrorDiagonal(source):
for y in range(0,getHeight(source)):
for x in range(y,getWidth(source)):
topPixel = getPixel(source ,x,y)
bottomPixel = getPixel(source,y,x)
color = getColor(topPixel)
setColor(bottomPixel ,color)
show(source)
```

Note: This function only works particularly well with square images.

Computer Science & Information Technology

You might also like to view...

Click the View tab on the ribbon to create a backup. ____________________

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

Computer Science & Information Technology

When you pass a variable as an argument that was declared with the ByVal keyword in a procedure, that procedure cannot change the original value of the variable.

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

Computer Science & Information Technology

Read a Web site's piracy rules before providing any personal information.

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

Computer Science & Information Technology

_________ is the basic physical layout of the circuit.

a. Point-to-point configuration b. Configuration c. Circuit configuration d. Circuit design e. Circuit plan

Computer Science & Information Technology