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

大约有 36 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0027 秒)

31. 某些机型drawToCanv绘图颜色变深 [ 57%]

...nvas.toDataURL("image/png"); var _webframe:*; _webframe = Browser.document.createElement("img"); _webframe.setAttribute('src', base64String); //_webframe.setAttribute('frameborder', 0); _webframe.setAttribute('width', "100%"); _webframe.setAttribute('height', "100%"); //_webframe.setAttribute('align...

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

32. 3d文字在浏览器能正常运行,打包后使用时会报错 [ 55%]

...this.texture2D.loadImageSource(this.cav);报错   this.cav = Laya.Browser.createElement("canvas"); this.cav.width = 256; this.cav.height = 256;  var cxt = this.cav.getContext("2d"); cxt.fillStyle = 'rgb(' + '220' + ',' + '5' + ',5)'; cxt.font = "bold 50px 宋体"; cxt.textAlign = "center";//文本...

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

33. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 52%]

...lob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); ``` 上面这个方法是...

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

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

...lob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); ``` ​ 上面这个方法...

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

35. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 51%]

...lob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); ``` 上面这个方法是...

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

36. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 41%]

...lob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); 上面这个方法是用...

来源: Laya3.0_文档 发布时间: 20230303