Homework 28 — image manipulation
Due Monday before class
Tasks
- Add two functions each to your modules
dimensions.py
and locate.py
Module dimensions.py
- Returns the dimensions of an image that would be half that of image
original
- Returns the dimensions of an image that would be twice that of image
original
Module locate.py
- Returns a new correspondent location
( a, b )
for nspot
, where the dimensions in the correspondent image (original) are twice that of nw
and nh
- Returns a new correspondent location
( a, b )
for nspot
, where the dimensions in the correspondent image are (original) half that of nw
and nh
Module effect.py
- Returns a new image that is a 16 by 16 scaling of a 1/16 by 1/16 scaling of
original
- You should find module manip.py functions
zoom_in()
and zoom_out()
helpful.