是否有动作来启用屏幕特定区域的屏幕截图?并且可能在不同的阶段显示此屏幕截图?
答案 0 :(得分: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));