0
$\begingroup$

enter image description here

http://i.stack.imgur.com/LbQSu.png

I have to boxes with same ratio.

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

$\endgroup$
  • $\begingroup$ $x$ and $y$ are positions of what? If this is taking place on the Cartesian plane, where is the origin? $\endgroup$ – Kevin Long May 7 '18 at 20:12
0
$\begingroup$

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$.

| cite | improve this answer | |
$\endgroup$

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