画面の特定の領域のスクリーンショットを有効にするアクション スクリプトはありますか? そして、このスクリーンショットを別の段階で表示できますか?
1445 次
1 に答える
1
現在のピクセルを新しいオブジェクトに描画するには、 BitmapDataオブジェクトを使用する必要があります。コードは次のようになります...
//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));
于 2011-01-19T18:05:47.390 に答える