Homework 30 — image manipulation

Due Wednesday December 4


Tasks

photo ops gui

Module dimensions.py

  • Returns the dimensions of an image whose width and height are one half that of image original
  • Returns the dimensions of an image whose width and height are twice that of image original

Module locate.py

  • Returns a new correspondent location ( a, b ) for spot, where the dimensions in the correspondent image are twice that of w and h
  • Returns a new correspondent location ( a, b ) for spot, where the dimensions in the correspondent image are half that of w and h

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.


mandrill


mandrill


mandrill


mandrill

 


 

 

 
   
   
   
 
  © 2019 Jim Cohoon   Resources from previous semesters are available.