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

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

661. 现在有没有办法把一个display.sprite转存成图片 [ 53%]

...nvas像素的方法,getimagedata无法直接使用 需要先 Laya.stage.drawToCanvas(720,1280, 0,0) 然 就可以获取到所有像素数据 只不过,这样的过程太晦涩,就像 canvas 直接调用 toDataUrl只能得到黑色的屏幕一样。 2017-12-01 0 0 分享 微博 QZONE 微信 fl...

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

662. 微信小游戏截图 [ 53%]

...: /** * 生成图片到相册或截屏 */ var htmlCanvas:HTMLCanvas= box.drawToCanvas(1280,720,0,0);//其中box是一个容器 var canvas:Object = htmlCanvas.getCanvas(); var imagePath:String;// = canvas.toTempFilePathSync(); canvas.toTempFilePath({ x: 0, y: 0, width: 1280, height: 720, destWidth: 1...

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

663. [WebView] Uncaught ReferenceError: Laya is not defined 错误 [ 53%]

...a mac版的IDE 是没测试就上线了吗? Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisi...

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

664. ReferenceError: RandomKey is not defined [ 53%]

...方示例 真机报错 window is not defined Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? window is not defined layaair-cmd 编译提示 ReferenceError: primordials is not defined LayaNative 预览在Android底下报错 ConchShader is not defined exports is not defined ...

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

665. WebGL模式下,环形图片作为遮罩,下面使用graphic导致出现边缘出现黑线 [ 53%]

...画最后一帧和第一帧衔接出现卡顿 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 问题状态 最新活动: 2017-01-16 22:19 浏览: 1714 关注: 2 人

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

666. LayaAirIDE2.2 - Laya3D init error ,must support webGL [ 53%]

...launch: Error Could not attach to main target Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 启动引擎报错 mPlugin.game_plugin_init(3); laya3D动画无法播放 Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail...

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

667. 至少给个解决window的链接,我笨搜不到,我开放域中 window is not defined [ 53%]

...方示例 真机报错 window is not defined Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 微信小游戏上线了,但凑不够需要的用户量咋办,有人有解决办法么 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 laya2 发布微信...

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

668. 关于Animator.linkSprite3DToAvatarNode引起报错问题 [ 53%]

...小程序报错window.focus is not a function Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 官网示例摇一摇报错,就解决方案 问题状态 最新活动: 2018-03-10 10:02 浏览: 1018 关注: 2 人 brooshe • 2018-03-12 17:18 已经上传测试工程 qian •...

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

669. captureScreen的回调函数的参数ImageData(类型是一个arrayBuffer)如何获得 [ 53%]

...但是调用获取不到 let htmlCanvas: Laya.HTMLCanvas = this.sprites[i].drawToCanvas(this.sprites[i].width, this.sprites[i].height, 0, 0); let canvas = htmlCanvas.getCanvas(); let context = canvas.getContext('2d'); var imageData = context.getImageData(0, 0, 128, 128);请问该如何从canvas里...

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

670. 微信小程序打包,提示“laya is not defined” [ 53%]

...微信小程序 发布后缺少app.json文件 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 问题状态 最新活动: 2019-12-31 11:40 浏览: 4431 关注: 3 人 layalayalaya • 2019-08-06 15:14 怎么更新库?

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