大约有 580 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0294 秒)
Laya_社区(220) Laya3.0_api(192) Laya2.0_api(58) laya_api(53) Laya2.0_文档(26) Laya3.0_文档(17) Laya2.0_示例(8) Laya_示例(6)
... var _canvas:* =this.drawToCanvas(this.width,this.height,0,0); var base64:* = _canvas._canvas.source.toDataURL(); return base64; } 附件 : --> 2017-04-01 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20170401
...oElement.controls = false; videoElement.autoplay =true; videoElement.style.width='100%'; videoElement.style.height='100%'; videoElement.autobuffer=true; videoElement.src = "/Users/apple/LayBox/星空/laya/assets/video/world.mp4"; // 设置画布上的对齐参照物 let reference = new Laya.Sprite()...
来源: Laya_社区 发布时间: 20181124
...this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","props":{"width":266,"height":720},"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"poker/bottom_slider.png"}}]}; return testUI; })(Dialog);我定义了一个对象来使用它 var SelectColorDialog = (function () { function selec...
来源: Laya_社区 发布时间: 20180325
...决方案 var htmlC: Laya.HTMLCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); //获取截屏区域的texture let base64 = htmlC.toBase64("image/jpeg", 1); 使用toBase64 报错can`t find variable conchToBase64FlipY 附件 : --> 2019-06-21 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20190621
...the target object or misses all objects. * When not penetrable, the node's width and height define the mouse collision area (a non-penetrable rectangular area). If the rectangular collision area does not meet the requirements, you can use the drawing area of the hit area as the collision area. The h...
来源: Laya_社区 发布时间: 20250825
...被触发 //设置背景图片 this.bgimg = new Laya.Sprite(); this.bgimg.width=2*scronw; this.bgimg.height=2*scronh; //加载显示图片,坐标位于0,0 var temptexture=Loader.getRes(pic); if (typeof(temptexture)!="undefined"){ this.bgimg.texture=Loader.getRes(pic) }else{ this.bgimg.loadImage(pi...
来源: Laya_社区 发布时间: 20171024
...格的行数 list.repeatY = 4; //设置列表位置 list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 使用但隐藏垂直滚动条 list.vScrollBarSkin = ""; //滚动在头或底回弹时间 list.scrollBar.elasticBackTime = 500; //滚动在...
来源: Laya2.0_文档 发布时间: 20210715
...ext cpuMemory destroyed gpuMemory height id obsolute referenceCount source width cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory clear destroy event getContext getMemSize getTexture hasListener isCreateFromURL off offAll offAllCall...
来源: Laya3.0_api 发布时间: 20231115
...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = n...
来源: Laya2.0_文档 发布时间: 20210714
... let htmlCanvas: Laya.HTMLCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); let base64Img = htmlCanvas.toBase64("image/png", 0.8); 而 关闭视网膜屏幕或者在屏幕像素比为1的设备上正常 附件...
来源: Laya_社区 发布时间: 20201019