大约有 213 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0050 秒)
如果把一张图片在内存中修改后,再重新加载为texture? 现在希望对一张下载的图片进行模糊,再把模糊后的对象放入texture或者image中显示, 请问下这个流程要怎么处理? 2017-07-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20170710
...获取Animation对象的frames属性,通过修改_one[0],赋值新的Texture对象即可实现,如下图: 最近出LayaRuntime包,发现在这个Runtime下,Animatin每一帧的数据是在_cmds中,并且cmds中不是Texture对象,而是HtmlImageElement对象。 现在的问题就...
来源: Laya_社区 发布时间: 20180716
Texture引用计数不为0的时候执行销毁纹理destroy方法后再加载这个资源会导致重复加载 /** *销毁纹理。 */ __proto.destroy=function(force){ (force===void 0)&& (force=false); if (!this._destroyed){ ...
来源: Laya_社区 发布时间: 20190704
..., function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser.window.sharedCanvas); texture.bitmap.alwaysChange = true;//小程序使用,非常费,这个参数可以根据自己的需求适当调整,如果内容不变可以不用设置成true ...
来源: Laya_社区 发布时间: 20180525
...r.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但是我换个默认的图集Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, this.createVie...
来源: Laya_社区 发布时间: 20180326
Texture自动恢复还是存在另外的问题 laya.resource.Texture类 __proto.recoverBitmap=function(){ var _$this=this; var url=this._bitmap.url; if (!this._destroyed && (!this._bitmap || this._bitmap.destroyed)&& url){ ...
来源: Laya_社区 发布时间: 20190311
...然后设置enableMerageInAtlas = false即可。 代码如下所示:var texture:Texture = Laya.loader.getRes(url); texture.bitmap.enableMerageInAtlas = false; 2017-08-21 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...
来源: Laya_社区 发布时间: 20170821
...* 初始化 地图 */ public function initMap(texture:Texture, bgID:int):void{ if(this.oldBgID != bgID){ oldBgID = bgID; if(oldTexture){ oldTexture.destroy(tru...
来源: Laya_社区 发布时间: 20171019
...ion的时候,会优先从缓存中读取,如图 3.所以当清理掉texture后,虽然重新加载了,但是Animation依然没有用新的texture。 解决办法是调用Laya.Animation.clearCache把动画缓存也清除掉,或者用clearTextureRes代替clearRes,具体看项目需求...
来源: Laya_社区 发布时间: 20180227
...in = "res/test.png"; image2.skin = "res/test.png"; 这里(image2.source as Texture).bitmap.useNum的值不应该是2才正常吗?这个位图数据被引用了两次 2017-04-21 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: 引用的useNum表示被多少个Texture引用了,上面的情...
来源: Laya_社区 发布时间: 20170420