标签:获取 texture eve new 图片 获取网络图片 bit gre target
获取网络图片
/**获取头像图片 */ let imgLoader: egret.ImageLoader = new egret.ImageLoader(); egret.ImageLoader.crossOrigin = "anonymous"; imgLoader.load(v); imgLoader.once(egret.Event.COMPLETE, (e: egret.Event) => { let texture = new egret.Texture(); texture.bitmapData = e.currentTarget.data; this.avatar.texture = texture; }, this);
/**获取头像图片 */ let imgLoader: egret.ImageLoader = new egret.ImageLoader(); egret.ImageLoader.crossOrigin = "anonymous"; imgLoader.load(v); imgLoader.once(egret.Event.COMPLETE, (e: egret.Event) => { let texture = new egret.Texture(); texture.bitmapData = e.currentTarget.data; this.avatar.texture = texture; }, this);
标签:获取 texture eve new 图片 获取网络图片 bit gre target
原文地址:https://www.cnblogs.com/webfs/p/12588247.html