大约有 238 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
...) 一个简单的bug请官方人自己测试一下_带示例代码 image loadimage 加载网络图片BUG 问题状态 最新活动: 2018-12-19 17:18 浏览: 1996 关注: 2 人
来源: Laya_社区 发布时间: 20181219
...})(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, texture.height / 2); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); ape.scale(0.8, 0.8); Laya.stage.addChild(ape); // 鼠标...
来源: Laya_示例 发布时间: 20261113
... 代码如下: function createSprite() { picture = new Sprite(); picture.loadImage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / ...
来源: Laya_社区 发布时间: 20181022
...prite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.ape.scale(0.8, 0.8); Laya.stage.addChild(th...
来源: Laya2.0_示例 发布时间: 20261113
如何在加载图片同时使其在舞台居中? sp.loadImage(_img, 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); 因为我之前1.0可以使用以上方法,但切换到2.0发现complete不触发,这让我如何是好? 2018-10-09 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20181009
...整个base64码当成URL使用试下,譬如var sp:Sprite=new Sprite();sp.loadImage("base64码");Laya.Stage.addChild(sp); 2017-08-03 1 0 分享 微博 QZONE 微信 ckndim 赞同来自: zc051113 感谢 能正常运行了 2017-08-03 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...
来源: Laya_社区 发布时间: 20170803
...e drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale setState strokeText transform translate Constructors constructor new AutoBitmap(): AutoBitmap Inherited from Graphics.constructor Defined in laya/display/Graphics.ts:54 Returns Au...
来源: Laya3.0_api 发布时间: 20231115
...下写$pic.height = 246;无效,加载后的图片还是100%显示,$pic.loadImage(_pic, 14, 192, 0, 0, Handler.create(this, function(){ $pic.height = 246; $pic.scaleX = $pic.scaleY; trace("$pic.width:" + $pic.width); })); 请问:我用原生上传了一张图片,然后传給...
来源: Laya_社区 发布时间: 20170503
...oad读到不到资源。 在Laya.MiniAdpter.downLoadFile缓存图片后,_loadImage调用时,会出现加载错误的情况。 如图, 在MiniFileMgr.getFileInfo(url)有值时, 条件语句会进入到最下面的MiniImage.onCreateImage中, 但onCreateImage的最后一个参数tempFilePa...
来源: Laya_社区 发布时间: 20200922
...ckground(){ Background.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("res/background.png"); this.addChild(this.bg1); } Laya.class(Background,"Background",_super); window.Background=Background; return Background; })(Laya.Sprite); 2017-04-20 0 2 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20170420