Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

enter image description here


I have to boxes with same ratio.

How can I find position x,y and width,height in the second box ?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Multiplying the small x-value (10) with the ratio between the two heights should do the trick. And likewise for everything else. So x in the larger box would be twice 10*100/50 = 20.

share|improve this answer
if another box w=300 , height = 156 ? –  l2aelba Nov 22 '12 at 11:39
now i think i know now, just basic math :P , my bad –  l2aelba Nov 22 '12 at 11:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.