大约有 1,035 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
...(this, screenShot); }); function screenShot(){ var htmlCanvas = Laya.stage.drawToCanvas(Laya.RenderState.clientWidth,Laya.RenderState.clientHeight,0,0); var texture = new Laya.Texture(htmlCanvas); var sp = new Laya.Sprite().pos(100,100); sp.graphics.drawTexture(texture); Laya.stage.addChild(sp); }; ...
来源: Laya_社区 发布时间: 20180503
...方法第一个参数需要传入arraryBuffer数据。 于是我使用drawToCanvas的方法获得HTMLCanvas。 并且使用HTMLCanvas.context.getImageData().data的方法获得ArrayBuffer。 HTMLCanvas.context.getImageData()这个方法在浏览器里是可以获得数据的,但在Native下这...
来源: Laya_社区 发布时间: 20180120
....height / 2)) let bound = this.img.getBounds() this.cacheCanvas = this.img.drawToCanvas(Math.ceil(bound.width), Math.ceil(bound.height), Math.round(bound.width / 2), Math.round(bound.height / 2)) this.cacheTexture = new Laya.Texture() this.cacheTexture.setTo(this.cacheCanvas) } getPixels(){ this.cac...
来源: Laya_社区 发布时间: 20171211
...: 我也遇到了,还没显示到Image里,只是根据鼠标移动做drawToCanvas就内存溢出了,LZ怎么解决的 if(this._htmlC){ this._htmlC.destroy(); } this._htmlC = this.zoomBox.drawToCanvas() 2017-11-01 0 0 分享 微博 QZONE 微信 cuixu_xucui 赞同来自: 刚更新到1.7.12就...
来源: Laya_社区 发布时间: 20170407
...上?导致无法拿到正确位置的Texture*/ var hc:HTMLCanvas = _view.drawToCanvas(1, 1, _view.stage.mouseX, _view.stage.mouseY); var tex:Texture = new Texture(hc); trace(tex.width + "---" + tex.height + "---" + getPixel(tex)); /*获取所画曲线鼠标点击处的像素,为何坐标对不...
来源: Laya_社区 发布时间: 20180319
...anager如何停止正在播放的背景音乐 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘...
来源: Laya_社区 发布时间: 20171107
...信小游戏中访问带空格的文件出错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 播放声音出错,求指教 项目分包后, 运行出错 drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 new La...
来源: Laya_社区 发布时间: 20170428
...l功能 LayaAir 3D 有提供 3D 物理引擎功能吗? 微信小游戏用drawtoCanvas截图,只要在openDataContext配置了具体路径,截图就没有图像,配置为''就可以显示图像,有demo 跪求登陆注册数据交互的demo或者格式啊!!或者其他功能的数据交...
来源: Laya_社区 发布时间: 20170301
...? 官方代码关于text的scroll unity中的3d text导出后不显示 drawToCanvas截屏为何画不出Text文本呢? Text 能否支持字间距? 为啥 增加 Text ,drawcall 暴增 ?????????????? 请问有人知道Text怎么选取 Text在ios部分机型显示有...
来源: Laya_社区 发布时间: 20180711
...游戏3d 发布后在手机预览显示异常 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? mac 用layaair2.0 ide 的编辑模式下,cpu爆满 问题状态 最新活动: 2019-08-03 17:30 浏览: 831 关注: 1 人
来源: Laya_社区 发布时间: 20190803