zoom and move matrix

Nov 20, 2012 at 11:04am

zoom and move matrix

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

#65291
Nov 20, 2012 at 12:06pm

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

#235321
Nov 20, 2012 at 12:07pm

The Patch

#235322
Nov 20, 2012 at 12:48pm

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

#235323
Nov 26, 2012 at 8:15am

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

#235324

You must be logged in to reply to this topic.