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

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

11. 将字节数组转为图片 [ 95%]

...ar file:File = File.applicationDirectory;             var picPath:String = file.resolvePath("img.png").nativePath;//获取图片路径             //读取图片文件到字节数组             var readFile:File = new File(picPath);             var readByte:ByteA...

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

12. String怎么转换为Uint8Array? [ 94%]

String怎么转换为Uint8Array? reason:string = “&¥#”; //比如这个reason是个服务器发我的乱码的字符串 var byte:Laya.Byte = new Laya.Byte(); byte.writeUTFString(reason); var uint8ar = byte.getUint8Array(0, byte.length); 我解析出来的二进制数组跟服务端对...

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

13. laya.d3.graphics.VertexElementFormat [ 92%]

...exElementFormat Object ... Public Constants ConstantDefined By  Byte4 : String = byte4[static] VertexElementFormat  Color : String = color[static] VertexElementFormat  HalfVector2 : String = halfvector2[static] VertexElementFormat  HalfVector4 : String = halfvector4[static] VertexElementFor...

来源: laya_api 发布时间: 20170929

14. laya.d3.graphics.VertexElementFormat [ 92%]

...at Object ... Public Methods  MethodDefined By  getElementInfos(element:String):Array[static] 获取顶点元素格式信息。 VertexElementFormatPublic Constants ConstantDefined By  Byte4 : String = byte4[static] VertexElementFormat  Color : String = color[static] VertexElementFormat  Ha...

来源: Laya2.0_api 发布时间: 20190513

15. WebSocket发送与接收数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 90%]

...据很简单,只需要调用Socket的send函数即可,参数可以是string或者是ArrayBuffer。 发送字符串格式: ```typescript this.socket.send("hello world");//这是发送字符串的形式。 ``` 发送二进制格式的数据: ```typescript this.byte.writeByte(1);//写入一个...

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

16. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 90%]

...据很简单,只需要调用socket的send函数即可,参数可以是String或者ArrayBuffer。 发送字符串格式 ```java this.socket.send("hello world");//这是发送字符串的形式。 ``` 发送二进制格式的数据 ```java this.byte.writeByte(1);//写入一个字节 this.byte.write...

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

17. [LayaAir3]laya ts怎么获取JSBridge方法里面 返回的byte[]数据 [ 89%]

...ya ts怎么获取JSBridge 方法里面的byte或者Bitmap等数据  已经string int 都是可以返回的 ,但是byte能获取到么 比如 public static byte getBytes() { byte dd2 = new byte{12, 3, 0}; return dd2; } public static Bitmap getBitmap() { } 可以在laya ts代码中获取到么 var ...

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

18. Laya有没有将base64字符串转Laya.Byte的方法? [ 89%]

...ublic static function encodeByte(byte:ByteEx, start:int = 0, end:int = -1):String         {             if (end < 0)             {                 end = byte.length;             }             return encode(byte.buffer.slice(s...

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

19. Byte writeArrayBuffer的Bug [ 88%]

...age.Login.Password: got wiretype 7, want 2   message Login{//用户登录 string nickName = 1; string password = 2; }   2018-03-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 darren 相关问题 TypeScript下HttpRequest发送Post请...

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

20. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 88%]

...t = new Browser.window.Blob([byte.buffer], { type: "image/png" }); var url:String = Browser.window.URL.createObjectURL(blob);//创建一个url对象; ////我们先用第一种方式显示图片到舞台; var sp:Sprite = new Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 }...

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