Forums > Jitter

jit.rota : centering the zoom ????


tep
December 13, 2013 | 11:04 am

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>


December 14, 2013 | 9:30 am

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>


Viewing 2 posts - 1 through 2 (of 2 total)