Flash:屏幕截图/保存视口图像

Flash:屏幕截图/保存视口图像,flash,actionscript,screenshot,macromedia,Flash,Actionscript,Screenshot,Macromedia,是否有actionscript来启用屏幕特定区域的屏幕截图?并可能在不同阶段显示此屏幕截图?您需要使用该对象将当前的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

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

您需要使用该对象将当前的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));
您将需要使用该对象将当前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));

你的意思是在你的flash应用程序之外拍摄一个屏幕截图吗?不,是将场景的一部分存储为图像或电影剪辑,然后将其显示。同样,你想拍摄你的flash内容的屏幕截图还是拍摄它周围网站的屏幕截图?第一个很简单,第二个不是flash内容的屏幕截图,而是内容的特定区域。然后在不同的位置再次显示…你是说在flash应用程序之外拍摄屏幕快照吗?不是,将场景的一部分存储为图像或电影剪辑,然后再显示。再次,你是想拍摄flash内容的屏幕快照还是拍摄其周围网站的屏幕快照?第一个很简单,第二个不是flash内容的屏幕截图,而是内容的特定区域。然后在不同的位置再次显示。。。