2013-04-05 159 views

回答

2

用你的數學底子

這將有助於

enter image description here

1

像這樣:

sx = original_width/destination_width 
sy = original_height/destination_height 
if sx*original_height > destination_height: 
    s = sy 
else: 
    s = sx 
new_width = original_width*s 
new_height = original_height*s 
相關問題