大约有 866 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0121 秒)
...(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
...: 我也遇到了,还没显示到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
....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
...上?导致无法拿到正确位置的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
截屏canvas 现在的api drawToCanvas 没有getCanvas方法了,大家怎么截图的 2020-01-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20200107
...信小游戏中访问带空格的文件出错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 播放声音出错,求指教 项目分包后, 运行出错 drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 new La...
来源: Laya_社区 发布时间: 20170428
...me运行报错! 微信小游戏编译报错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? IDE通过.ui自动生成的ui代码报错 问题状态 最新活动: 2018-09-11 16:09 浏览: 2097 关注: 2 人
来源: Laya_社区 发布时间: 20180910
...成的ui代码报错 关于龙骨动画转换 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 启动引擎报错 mPlugin.game_plugin_init(3); 小游戏项目 加载有中文的json文件 报错 本地调试加载本地图片都报错 问题状态 最新活动: 2017-11-30 1...
来源: Laya_社区 发布时间: 20171130
...anager如何停止正在播放的背景音乐 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘...
来源: Laya_社区 发布时间: 20171107