Team:Buenos Aires/Pruebas
From 2013.igem.org
(Difference between revisions)
Line 318: | Line 318: | ||
i_w = $img.width(), | i_w = $img.width(), | ||
i_h = $img.height(), | i_h = $img.height(), | ||
- | r_i = | + | r_i = i_w / i_h, |
new_w,new_h, | new_w,new_h, | ||
new_left,new_top; | new_left,new_top; | ||
Line 327: | Line 327: | ||
} | } | ||
else{ | else{ | ||
- | new_h = w_h | + | new_h = w_h * r_i; |
- | new_w = w_w | + | new_w = w_w * r_i; |
} | } | ||
Revision as of 00:16, 27 May 2013