Picture Frame Specification
Write a function that places a picture within a frame image and saves that image to a file.
The frame image should have some whitespace (e.g., the middle) which is
where the picture will go.
Include a
'main' program that asks the user for the inner picture and then calls
your frame function.
Outline of SolutionFind coordinates of the inner part of frame using Media Tool.
Define two sets of column/row walker variables to walk through the frame and the inner picture.
Use a regular nested loop, but set and modify both sets of walker variables.
AdvancedHandle any size inner picture: What if inner picture is too small? What if it is too big?
Discuss scaling.
|
|