2013-04-05 3 views

답변

2

이 도움이됩니다 mathmatics

를 사용

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 
관련 문제