大约有 2,372 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1434) Laya2.0_文档(592) Laya3.0_api(65) Laya_示例(61) Laya3.0_文档(60) Laya2.0_api(60) laya_api(54) Laya2.0_示例(46)
...r='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayShow); } delayShow() { let canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); let str = canvas.toBase64('...
来源: Laya_社区 发布时间: 20230419
...ew回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但是我换个默认的图集Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.createView)); 却能拿到图集中的图片。是我...
来源: Laya_社区 发布时间: 20180326
...T_FOUND [warn]Retry to load: D:/work/LayaAir/GuessGame/bin/h5/ui/bg_prompt.png Failed to load resource: net::ERR_FILE_NOT_FOUND [error]Failed to load: D:/work/LayaAir/GuessGame/bin/h5/ui/bg_prompt.png 2017-02-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20170205
...缩过很 虚而模糊 Supermang42 • 2017-09-27 11:45 圖片格式改成 png32 試試看。 Supermang42 • 2017-09-27 11:51 引擎改版後,圖片格式用png8的話畫質會非常差,應該是官方有針對壓縮這塊做強化。 wxj56406542 • 2017-09-26 19:34 我只是使用IDE进行导...
来源: Laya_社区 发布时间: 20170926
... = false; //判断条件 this.img1 = "../laya/assets/comp/haoyoubang-liang.png"; //地址 this.img2 = "../laya/assets/comp/haoyuobang-hui.png"; var img = new Laya.Sprite(); //实例 img.width = 300; //宽高 img.height = 200; switchImg(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya...
来源: Laya_社区 发布时间: 20180502
...Array = ; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildBy...
来源: Laya_社区 发布时间: 20170215
... 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("res/atlas/test0.png"); ape = new Sprite(); var matrix:Matrix = new Matrix(); matrix.a = -1; matrix.t...
来源: Laya_社区 发布时间: 20170221
...reItem = new Laya.Image(); fish.scoreItem.skin = "assets/ui_imgs/img_10103.png"; fish.scoreItem.sizeGrid = '0,10,0,10'; var price = this.getFishVal('10001', 3); var length = String(price).length; var w = length * 16 + 15 + 40; fish.scoreItem.width = w; fish.scoreItem.x = fish.getBox().x - fish.score...
来源: Laya_社区 发布时间: 20180517
...了graphics,譬如画了一个矩形,然后我想导出sprite的图片png(base64),在native端? cyqcyqcyq • 2017-08-25 19:59 @Monica:我试了canvas方法,在浏览器端没有问题,但在native端没有toDateUrl方法,所以不能导出png Monica • 2017-08-25 20:01 @cyqcyqcyq...
来源: Laya_社区 发布时间: 20170824
...对 将 swf 文件拖入到 swf 转换工具中,转换完毕后,没有png图,文件夹结构也与文档中不一样。 2017-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 HenryZhang 赞同来自: 附...
来源: Laya_社区 发布时间: 20171214