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);
网友评论