在播放IDE制作的帧动画之后会出现截图失败的情况
private takePhoto(){
this._htmlC = this.gridBox.drawToCanvas(this.gridBox.width,this.gridBox.height,0,0);
//获取截屏区域的texture
this._tex = new Laya.Texture(this._htmlC);
this._photo=new Laya.Sprite();
//将截屏的texture进行draw绘制并显示到舞台
this._photo.name="testtt";
this._photo.graphics.drawTexture(this._tex,0,0,this.gridBox.width,this.gridBox.height);
}
附件:
demo.zip