In this lab, we created a function called "copyInto", which takes 2
images, and copies one image on top of another. We also made a program
that utilizes the copyInto function to make a matted image, with a
border of any given color, which is shown below. Finally, we made a
program that utilizes copyInto and scaling, which we used to make an
image a quarter of it's original size, and tile it four times across a
canvas with the same dimensions as the original picture.
For this lab, I used a picture I took of some choir-children statues at
Salisbury Cathedral, in Salisbury, United Kingdom. Here's the original
picture.
Here is the matted image, with a white border (though the color of the
border can be anything, since it's a parameter in the function).
Like I said before, we also created an image that had the same
dimensions as the original picture, but four copies of the original
picture tiled within those dimensions. This effect is shown below.
Return
to John's course page