Can I get vector data back out out of a Graphics object?

岁酱吖の 提交于 2019-12-01 08:11:02

问题


In the Flash 10 player, suppose I've loaded a Sprite that's just a dozen random lines. Is there any way to inspect that Sprite's graphics object and find out the positions of those lines?

Currently I have a crazy work around where I draw the lines to a bitmap and inspect the bitmap, but this is crude and expensive.


回答1:


No and yes.

There's no especially convenient way, but it is possible. Check out Claus Wahlers blog post on the subject. It's a great read.



来源:https://stackoverflow.com/questions/1479304/can-i-get-vector-data-back-out-out-of-a-graphics-object

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!