jit.rota : centering the zoom ????

Dec 13, 2013 at 11:04am

jit.rota : centering the zoom ????

Ok i suppose it’s very easy.

I want to do this : selecting a zone in a video by clicking it, i want to zoom considering the click point as the CENTER of my zone.
So, my weak sense of logic would be :
- calculate the size of zoomed screen related to zoom (resolution / zoom) for x / y
- to get the center point, substract 1/2 of that new x value and add 1/2 of the y value

Result : no. not at all. try again….

???

<code>

– Pasted Max Patch, click to expand. –

</code>

#275664
Dec 14, 2013 at 9:30am

Here’s an example of centering the zoomed image. Adjust as needed to center around your mouse click.

<code>

– Pasted Max Patch, click to expand. –

</code>

#275716

You must be logged in to reply to this topic.