【问题标题】:Flash: Screenshot/save viewport imageFlash:屏幕截图/保存视口图像
【发布时间】:2011-01-19 08:45:00
【问题描述】:

是否有动作脚本来启用屏幕特定区域的屏幕截图?并可能在不同的阶段显示此屏幕截图?

【问题讨论】:

  • 您是指在 Flash 应用程序之外截取屏幕截图吗?
  • 否,将场景的一部分存储为图像或影片剪辑,然后显示。
  • 再次,您是要截取您的 Flash 内容还是截取它周围的网站?第一个容易,第二个不。
  • flash 内容的屏幕截图,但内容的特定区域。然后在不同的位置再次显示...

标签: flash actionscript screenshot macromedia


【解决方案1】:

您需要使用BitmapData 对象将当前的pizel 绘制到一个新对象上。代码可能看起来像这样......

//Assuming x,y,w,h is the area you want to capture
//Create a new bitmap data object to store our screen capture
var bmp:BitmapData = new BitmapData(h, w);

//Draw the stage onto our bitmap data clipping at the correct points
bmp.Draw(stage, null, null, null, new Rectangle(x, y, w, h));

【讨论】:

    猜你喜欢
    • 2014-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-28
    • 2019-09-16
    • 1970-01-01
    相关资源
    最近更新 更多