[]使用drawToCanvas截图多次之后,再也无法再本次程序中截图显示。没有任何报错
在播放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);
}
3 个回复
cuixueying
赞同来自:
cuixueying
赞同来自:
lu632375951
赞同来自: