Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- X = the X of the image
- Y = the Y of the image
- A = the X i want image to resize to
- B = the Y i want image to resize to
- x_diff = X / A
- y_diff = Y / B
- new xmin = xmin * x_diff
- new ymin = ymin * y_diff
- new xmax = xmax * x_diff
- new ymax = ymax * y_diff
Add Comment
Please, Sign In to add comment