starling截屏

var rt: RenderTexture=new RenderTexture();

var matrix:Matrix=new Matrix();

matrix.scale(display.scaleX,display.scaleY);

matrix.translate(-100,-100);

rt.draw(display,matrix);

addChild(new Image(Texture.fromTexture(rt)));

Texture转BitmapData:

var bmd:BitmapData = tImage.drawToBitmapData(bmd);

你可能感兴趣的:(starling截屏)