swf 到网站上的图像?

发布于 2024-09-05 22:50:28 字数 148 浏览 2 评论 0原文

我想将 swf 转换为我网站上的图像。用户在舞台上进行一些更改,如果他按下“获取图像链接”按钮,swf 舞台将转换为图像,并且其图像链接将出现在一个框中。就像 imageshack.. 所以用户可以在论坛中使用它作为图像。我该怎么做?我什至不知道它是关于flash还是html...

i want to convert a swf to image on my website. a user makes some changes on the stage and if he press a button "get image link", the swf stage will be converted to an image and its image link will appear within a box. like imageshack.. so user can use it in forums as image. how can i do this? i even dont know it is about flash or html...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别念他 2024-09-12 22:50:28

仔细阅读 Henry Jones - 使用 AS3 Jpeg 编码器。他准确地解释了您需要什么,还有一些!

您基本上可以使用 BitmapData 类将显示对象转换为图像数据。然后您可以使用 JPGEncoder来自 AS3 Core Lib,将该数据编码为 JPEG。然后,通过一些服务器端代码,您可以将该 JPEG 发送到该服务器。

Have a good read of Henry Jones - Using the AS3 Jpeg Encoder. He explains exactly what you need, plus some!

You basically what to use the BitmapData class to convert you displayobject into image data. Then you can use JPGEncoder from AS3 Core Lib, to encode that data into a JPEG. Then with a bit of serverside code you can send that JPEG to that server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文