标签:style blog ar color sp div log bs ad
要绘制对象的定位点不在图像的左上角时,draw需要平移转换
var mc:MovieClip; var rect:Rectangle = mc.getBounds(mc); var bmd:BitmapData=new BitmapData(int(rect.width.toFixed()) ,int(rect.height.toFixed()),true,0); bmd.draw(mc, new Matrix(1, 0, 0, 1,- rect.x, - rect.y)); stage.addChild(new Bitmap(bmd));
标签:style blog ar color sp div log bs ad
原文地址:http://www.cnblogs.com/Blessing/p/4172966.html