Paste copied shape in the center of the canvas in flex
I have to paste the copied shape on the center of the visible part of canvas.The canvas is on the panel and panel is having scrollbar and I need to position the shape , so that the center of the 开发者_运维知识库shape is the center of the visible canvas.I am also zooming out the canvas and should be able to paste on the center of the zoomed canvas. Do anybody is having any idea about the above issue?
how you are pasting that i don't know
any way the solution seems to be like this
convert the center point of the panel to Local point of the Canvas.
during pasting.
and this link seems to be useful Local to Global & Global to Local
精彩评论