Forums > Jitter

zoom and move matrix


Nov 20 2012 | 11:04 am

Hi
Can anybody help.
I am working on a patch an i would like to move around a zoomed in matrix. So far i could move it, like in tut14 but the matrix does not stay in its zoomed proportion. Example: Like in Photoshop you zoom in to work on a small detail and you can move the picture while staying in the zoomed in mode. Any idea ?
Thank you,
gammon

Nov 20 2012 | 12:06 pm

Hi
Sorry for my incomplete post.
Here is the patch i am working on …
After you zoom in, i would like to move the matrix in all directions. But the matrix should stay at its zoom level.
Can anybody help.

I hope this is more clear than in my first post, sorry.
Thanks
gammon

Nov 20 2012 | 12:07 pm

The Patch

Nov 20 2012 | 12:48 pm

Do you understand what srcdim does with the matrix? it just defines new start + end points in the source image both in horizontal + vertical. that means if you have an incoming matrix with size 1000 1000 and give this sourceimage 100 100 as start points and 300 300 as endpoints then your window displays a resulting matrix with size 200 200. if you tell it 400 400 as startpoints and 600 600 as endpoints the resulting matrix has the same size (200 200)… so you can move at same zoomlevel if the difference between start and endpoints stays identical….


-- Pasted Max Patch, click to expand. --

But for what you want to achieve jit.rota or the rota-shader are probably more comfortable to use…

have a look at the bottom of this thread:

http://cycling74.com/forums/topic.php?id=1148

Nov 26 2012 | 8:15 am

Dear Tobias
Thank you so much for your help. You where right i did not understand srcdim properly. But now i do. ;-)

All the best
gammon

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

Forums > Jitter