开发者

Flex/AIR pinch zoom centreing image

开发者 https://www.devze.com 2023-03-25 17:53 出处:网络
I am developing an application with flex/air and I need to centre an image in the view port while pinch zooming.

I am developing an application with flex/air and I need to centre an image in the view port while pinch zooming.

I start with an image of 3008x2000 at 1:1 scale, I then want to be able to zoom in and out on a certain area of the image with a combination of scaling and repositioning on the screen.

Does anybody have a working method of doing this smoothly? I keep messing with the math but am hav开发者_如何学编程ing no luck.

0

精彩评论

暂无评论...
验证码 换一张
取 消