Assignment 25 — image manipulation

Due Monday, April 16


Module manip.py

Supports several common image transformations – mirroring, flipping, rotating, scaling, and pixelation. Except for the pixelation transformation, all of the transformations copy values from the original image into the transformation.

Questions to ask yourself before attempting the transformations:


Function cw( original )

original original


Function scale( original, xfactor, yfactor )

original mixed scaling
original mixed scaling
original mixed scaling
original mixed scaling

Function pixelate( original )

Thomas Jefferson pixelated Thomas Jefferson

 



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!