Get image dimension after rotation

875 Views Asked by At

I asked this question at StackOverflow, maybe because it's all about math, I don't get a working solution.

I'm actually trying to get the image dimension after rotation using canvas with a certain angle in Javascript.

enter image description here

1

There are 1 best solutions below

0
On

$200 \cos(30^\circ) + 80 \sin (30^\circ) $ by $200 \sin(30^\circ) + 80 \cos (30^\circ) $ .

$\cos(30^\circ) = \frac{\sqrt{3}}{2}$ while $\sin(30^\circ) = \frac{1}{2}$.