I am trying to crop the visible area of a panzoom controlled image. I'm doing this by converting the image to a canvas using the panzoom pan coordinates as offsets for the crop. This works fine when no scaling/zooming occurs but when that happens the coordinates no longer match the 'visible' area.
What's the best way to achieve this? Any suggestions welcome!
Hello
Cool library - thanks for all the hard work!
I am trying to crop the visible area of a panzoom controlled image. I'm doing this by converting the image to a canvas using the panzoom pan coordinates as offsets for the crop. This works fine when no scaling/zooming occurs but when that happens the coordinates no longer match the 'visible' area.
What's the best way to achieve this? Any suggestions welcome!
Thanks in advance Rich