Adobe Flex 上的窗口屏幕捕获?
有没有办法使用flex来截取客户端窗口的屏幕截图?
我找到了一个使用 java 桥的示例,但我正在寻找不同的解决方案。
Is there a way to take screenshot of the client's window using flex?
I found an example which uses java bridge, but i am looking for different solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您想拍摄用户屏幕的快照吗?或者只是 AIR 应用程序?
如果您想截取用户屏幕的屏幕截图,我会查看 NitroScreenCap。他们使用的“通用”方法是为每个操作系统编写本机代码,并使用 NativProcess 将其与 AIR 应用程序打包在一起。我想如果需要的话你可以尝试自己实现。
如果您只需要 Flex 应用程序的屏幕截图;做一些谷歌搜索。您可以获取任何给定 Flex 组件的 BitMapData 并将其转换为图像。以下是出现的一些链接:
http://blog.flexexamples.com/2007/11/16/take-screenshots-in-flex-using-the-imagesnapshotcaptureimage-method/
http://dougmccune.com/blog/2007/06/03/save-a-snapshot-image-of-a-flex-app-without-a-server/
http://www.mehtanirav.com/take-a-snapshot-of-flex-app-from-flex/
Do you want to take a snapshot of the users screen? OR just of the AIR App?
If you want to take a screencap of the user's screen, I'd look into NitroScreenCap. The 'generic' approach they use is that they wrote native code for each operating system and pack it up with the AIR app using a NativProcess. I guess you could try to implement that yourself if needed.
If you just need a screencap of the Flex app; do some Googling. You can get the BitMapData of any given Flex Component and turn that into an image. Here are a few links that come up:
http://blog.flexexamples.com/2007/11/16/taking-screenshots-in-flex-using-the-imagesnapshotcaptureimage-method/
http://dougmccune.com/blog/2007/06/03/save-a-snapshot-image-of-a-flex-app-without-a-server/
http://www.mehtanirav.com/taking-a-snapshot-of-flex-app-from-flex/