Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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|cite|improve this question
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\times\frac{100}{50} = 20$.

share|cite|improve this answer

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.