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

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

51. AS和JS互相通信:ExternalInterface [ 62%]

...54 浏览: 1018 关注: 2 人 ryusing • 2017-11-22 21:39 如果参数是 uint8array, 怎么传过去??

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

52. laya.resource.Texture_API3.0 [ 62%]

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

53. texture2d的getPixels()返回结构 [ 62%]

texture2d的getPixels()返回结构 texture2d的getPixels()返回结构Uint8Array|Float32Array 如何转换为Float32Array格式  2020-01-07 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠...

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

54. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 62%]

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

55. RenderTexture的像素读取(TypeScript-3D基础(TS)-LayaAir3D之纹理) [ 62%]

...染目标的像素数据,默认renderTarget的颜色为RGBA var out = new Uint8Array(2048*2048*4); renderTargetCamera.renderTarget.getData(0, 0, 2048, 2048, out); //设置纹理的填充像素像素 tex.setPixels(out); ``` 在开始渲染后,我们调整视角就可以看到拍照的效果了。 !...

来源: Laya2.0_文档 发布时间: 20210714

56. Laya.Byte的readUTFBytes问题 [ 61%]

...能读太大的数据吗?代码如下:var inflate = new Zlib.Inflate(new Uint8Array(data)); var outbuffer = inflate.decompress(); var sourceBytes:Laya.Byte =new Laya.Byte(outbuffer.buffer); sourceBytes.endian = "BIG_ENDIAN"; var jsonstr:string = sourceBytes.readUTFBytes(sourceBytes.bytesAvailable)...

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

57. 向服务器发送图片无法使用atob解码? [ 61%]

...;             var n = bstr.length;             var u8arr = new Uint8Array(n);             while (n--) {                 u8arr[n] = bstr.charCodeAt(n);             }             return new Blob([u8arr], { type: mime });//值,类型         } 不能用这种...

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

58. laya.gltf.glTFUtils_API3.0 [ 60%]

...fferwithAccessorIndex(accessorIndex: number): Float32Array | Uint16Array | Uint8Array | Uint32Array | Int16Array | Int8Array Defined in laya/gltf/glTFUtils.ts:324 获取 accessor buffer 数据 Parameters accessorIndex: number Returns Float32Array | Uint16Array | Uint8Array | Uint32Array | Int16Array...

来源: Laya3.0_api 发布时间: 20231102

59. laya.d3.resource.models.Mesh_API3.0 [ 59%]

...ters colors: Color[] 颜色数组。 Returns void getIndices getIndices(): Uint8Array | Uint16Array | Uint32Array Defined in laya/d3/resource/models/Mesh.ts:723 拷贝并获取网格索引的副本。 Returns Uint8Array | Uint16Array | Uint32Array 网格索引。 getNormals getNormals(normals: Vecto...

来源: Laya3.0_api 发布时间: 20231115

60. 如何把一个像素数组生成一张texture2D [ 59%]

...目里自己获取了需要的像素矩阵,但我不知道如何将这些uint8Array像素数组去创建一张texture2d,也没有在官网api找到办法,请帮助我。 2018-09-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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