On Wed, 19 Mar 2008 23:06:44 -0700, royG wrote:

> suppose
> origsz=(400,300)
> i want to divide the origsize by 2.5 so i can resize to (160,120)
> 
> scale=2.5
> how can i get the newsz?
> obviously origsz/2.5 won't work  ..

newsz = (origsz[0]/scale, origsz[1]/scale)




-- 
Steven
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to