var renderTexture: egret.RenderTexture = new egret.RenderTexture();
renderTexture.drawToTexture(this._floor,new egret.Rectangle(-this._floor.width/2,0,this._floor.width,this._floor.height));
Egret)截取某一范围作为图片
最新推荐文章于 2021-12-30 17:29:00 发布
var renderTexture: egret.RenderTexture = new egret.RenderTexture();
renderTexture.drawToTexture(this._floor,new egret.Rectangle(-this._floor.width/2,0,this._floor.width,this._floor.height));