我可以从 Graphics 对象中取出矢量数据吗? [英] Can I get vector data back out out of a Graphics object?

查看:22
本文介绍了我可以从 Graphics 对象中取出矢量数据吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Flash 10 播放器中,假设我加载了一个只有十几条随机行的 Sprite.有没有办法检查那个精灵的图形对象并找出这些线的位置?

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.

推荐答案

否和是.

没有特别方便的方法,但它是可能的.查看 Claus Wahlers 博文主题.读起来很棒.

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

这篇关于我可以从 Graphics 对象中取出矢量数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆