[]laya中的截屏在WebGL下为什么无效呢?
laya中的截屏在WebGL下为什么无效呢?而egret中提供的截屏咋如些简单,且行之有效。
以下是 egret中截屏的关键代码
this._bmpSnap = new egret.Bitmap;
this._bmpSnap.x = L.GAP_UNIFIED;
this._bmpSnap.y = this._contMotion.y + L.H_CLIP + L.GAP_UNIFIED;
this.addChild( this._bmpSnap );
/// 快照特效
this._shapeSnapEffect = new egret.Shape;
this._shapeSnapEffect.graphics.beginFill( 0xFFFFFF );
this._shapeSnapEffect.graphics.drawRect( 0, 0, L.W_CLIP, L.H_CLIP );
this._shapeSnapEffect.graphics.endFill();
this._shapeSnapEffect.cacheAsBitmap = true;
this._shapeSnapEffect.x = this._bmpSnap.x;
this._shapeSnapEffect.y = this._bmpSnap.y;
http://developer.egret.com/cn/ ... -draw
Laya能不能参考一下egret中的截屏功能吗??
在WebGL和app下命倒底用什么方法才能截屏呢???期待。。。。。。。
以下是 egret中截屏的关键代码
this._bmpSnap = new egret.Bitmap;
this._bmpSnap.x = L.GAP_UNIFIED;
this._bmpSnap.y = this._contMotion.y + L.H_CLIP + L.GAP_UNIFIED;
this.addChild( this._bmpSnap );
/// 快照特效
this._shapeSnapEffect = new egret.Shape;
this._shapeSnapEffect.graphics.beginFill( 0xFFFFFF );
this._shapeSnapEffect.graphics.drawRect( 0, 0, L.W_CLIP, L.H_CLIP );
this._shapeSnapEffect.graphics.endFill();
this._shapeSnapEffect.cacheAsBitmap = true;
this._shapeSnapEffect.x = this._bmpSnap.x;
this._shapeSnapEffect.y = this._bmpSnap.y;
http://developer.egret.com/cn/ ... -draw
Laya能不能参考一下egret中的截屏功能吗??
在WebGL和app下命倒底用什么方法才能截屏呢???期待。。。。。。。
没有找到相关结果
已邀请:
要回复问题请先登录
3 个回复
Monica - 知识达人
赞同来自:
Native下截屏:http://ldc.layabox.com/doc/?nav=ch-as-5-2-7
wufee
赞同来自:
wufee
赞同来自: