• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 866 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)

91. Laya截图3D场景相关模型,导致模型透视! [ 68%]

...(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

92. Native下htmlCanvas.context.getImageData获取的ImageData是空的。 [ 68%]

...方法第一个参数需要传入arraryBuffer数据。   于是我使用drawToCanvas的方法获得HTMLCanvas。 并且使用HTMLCanvas.context.getImageData().data的方法获得ArrayBuffer。 HTMLCanvas.context.getImageData()这个方法在浏览器里是可以获得数据的,但在Native下这...

来源: Laya_社区 发布时间: 20180120

93. 关于HTMLCanvas对象的释放问题 [ 66%]

...: 我也遇到了,还没显示到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

94. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 66%]

....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

95. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 64%]

...上?导致无法拿到正确位置的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

96. 截屏canvas [ 60%]

截屏canvas 现在的api   drawToCanvas 没有getCanvas方法了,大家怎么截图的 2020-01-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要回复问题请先...

来源: Laya_社区 发布时间: 20200107

97. Webgl 下绘制出错 [ 60%]

...信小游戏中访问带空格的文件出错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 播放声音出错,求指教 项目分包后, 运行出错 drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 new La...

来源: Laya_社区 发布时间: 20170428

98. 论坛搜索引擎报错 [ 60%]

...me运行报错! 微信小游戏编译报错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? IDE通过.ui自动生成的ui代码报错 问题状态 最新活动: 2018-09-11 16:09 浏览: 2097 关注: 2 人

来源: Laya_社区 发布时间: 20180910

99. 转换界面报错,偶现的 [ 60%]

...成的ui代码报错 关于龙骨动画转换 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 启动引擎报错 mPlugin.game_plugin_init(3); 小游戏项目 加载有中文的json文件 报错 本地调试加载本地图片都报错 问题状态 最新活动: 2017-11-30 1...

来源: Laya_社区 发布时间: 20171130

100. 如何动态停止webgl绘制 [ 60%]

...anager如何停止正在播放的背景音乐 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘...

来源: Laya_社区 发布时间: 20171107