Assignment 24 — image manipulation
Due Friday, April 13
Module manip.py
- For now supports three common image operations – duplicating, mirroring, and flipping.
- Questions to ask yourself before attempting the operations:
- How do the dimensions of the transformation compare with the original?
- What pixel from the original should be copied into new image location
(nx, ny)
?
Function dup( original )
- Returns a new image that duplicates
original
.
Function mirror( original )
- Returns a new image that mirrors
original
.
Function flip( original )
- Returns a new image that is a vertical flipping of
original
.
Warning: fopen(/l/cs1112/public_html/defs/htm/181-trailer): Failed to open stream: No such file or directory in /l/cs1112/public_html/defs/php/read.php on line 5
Unable to open file!