''' Purpose: support image flipping transformation ''' def size( original ) : ''' Purpose: return the size of the new image when performing a flipping ''' pass def color( opixel ) : ''' Purpose: return the new pixel when performing a flipping transformation ''' pass def where( nspot, original ) : ''' Purpose: return the correspondent of nspot in the original when doing a flipping ''' pass if ( __name__ == '__main__' ) : import url from manip import manip # get web image of interest link = "http://www.cs.virginia.edu/~cs1112/images/mandrill/full.png" original = url.get_image( link ) new_image = manip( original, size, color, where ) new_image.show()