大约有 98 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
Laya_社区(49) Laya3.0_api(21) Laya2.0_文档(8) Laya2.0_api(8) laya_api(5) Laya3.0_文档(5) Laya2.0_示例(1) Laya_示例(1)
...数据,如果资源没有加密,第二个参数可以不写。 const uint8Array = new Uint8Array(message, 4); // 将 ArrayBuffer 转换为图片数据并加载到 LayaAir 引擎中 const img = new Laya.Image(); img.size(110, 145); // 设置图片显示大小 img.skin = Laya.Browser.window.URL.cr...
来源: Laya3.0_文档 发布时间: 20251010
...下什么原因,十分感谢。RangeError: Source is too large at Uint8Array.set (native) at Pv (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/libs/laya.physics3D.js:304:397) at Object.window.Physics3D (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/L...
来源: Laya_社区 发布时间: 20181228
...清0的bug 给边缘带透明像素的Image设置sizeGrid时显示异常 Uint8Array的像素数据在ios中无法改变图片纹理,安卓正常 问题状态 最新活动: 2025-07-16 09:40 浏览: 800 关注: 1 人
来源: Laya_社区 发布时间: 20250716
...为空 Texture,和Texture2D如何互转? Texture2D类getPixels()返回的uint8Array按什么格式存储的 问题状态 最新活动: 2018-11-19 14:53 浏览: 829 关注: 2 人
来源: Laya_社区 发布时间: 20181031
...染目标的像素数据,默认renderTarget的颜色为RGBA var out = new Uint8Array(2048*2048*4); renderTargetCamera.renderTarget.getData(0, 0, 2048, 2048, out); //设置纹理的填充像素像素 tex.setPixels(out); ``` 在开始渲染后,我们调整视角就可以看到拍照的效果了。 !...
来源: Laya2.0_文档 发布时间: 20210714
...54 浏览: 1018 关注: 2 人 ryusing • 2017-11-22 21:39 如果参数是 uint8array, 怎么传过去??
来源: Laya_社区 发布时间: 20170620
... getPixels getPixels(x: number, y: number, width: number, height: number): Uint8Array Defined in laya/resource/Texture.ts:395 获取Texture上的某个区域的像素点 Parameters x: number y: number width: number height: number Returns Uint8Array 返回像素点集合 getTexturePixels getTexturePi...
来源: Laya3.0_api 发布时间: 20231115
texture2d的getPixels()返回结构 texture2d的getPixels()返回结构Uint8Array|Float32Array 如何转换为Float32Array格式 2020-01-07 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠...
来源: Laya_社区 发布时间: 20200107
...Loader.getRes(this.AllPng[this.curStatus ? 0: 1]);//pic-001 const x2 = new Uint8Array(data); let p = new window['PNG'](x2); let getData = p.decode();//rgba数组序列 this.texture.setPixels(getData); } private onKey(e){ if(e.keyCode == 49){ this.refreshCamera(); // this.updateUITexture(data); }else...
来源: Laya_社区 发布时间: 20220815
...染目标的像素数据,默认renderTarget的颜色为RGBA var out = new Uint8Array(2048*2048*4); renderTargetCamera.renderTarget.getData(0, 0, 2048, 2048, out); //设置纹理的填充像素像素 tex.setPixels(out); ``` 在开始渲染后,我们调整视角就可以看到拍照的效果了。 !...
来源: Laya2.0_文档 发布时间: 20210714