views:

107

answers:

0

Hi, I am working on a image editing tool where user can pan / rotate and zoom the image. I am using Matrix to apply rotation and zooming effects. Now the probelm is that if image is not rotated, its panning works perfectly. But once the user rotates it, panning functionality goes for a toss.

Here's the line of code i am using to drag (pan) image:

image.startDrag(false, _scrollArea);

_scrollArea is an instance of Rectangle class.

Please reply back with your solution / suggestion.

Thanks in advance for your precious time and kind help.