大约有 303 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0053 秒)
Laya_社区(106) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(12) Laya3.0_文档(3) Laya2.0_示例(2) Laya_示例(2)
...r.getRes(url); let maskMc:Laya.Sprite = new Laya.Sprite(); maskMc.graphics.drawTexture(tx,0,0,tx.width,tx.height); this.bar.displayObject.mask = maskMc; this.bar.visible = true; maskMc 是外部加载的一个纹理,就算是一起放在fairygui里面的还是不行this.bar 是在fairygui图集里...
来源: Laya_社区 发布时间: 20200108
....Texture(htmlCanvas); var sp = new Laya.Sprite().pos(100,100); sp.graphics.drawTexture(texture); Laya.stage.addChild(sp); }; }()); 2018-05-03 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 12 个回复 Chenyazhi 赞同来自: ...
来源: Laya_社区 发布时间: 20180503
... Image(); var texture = Laya.loader.getRes(heroidstr); m_herohead.graphics.drawTexture(texture); m_herohead.anchorX = 0.5; m_herohead.anchorY = 1; m_herohead.pos(m_heroPosX,m_heroPosY); m_mapbg.addChild(m_herohead); 我在代码里创建图片,可是设置锚点后,显示还是0,0没有...
来源: Laya_社区 发布时间: 20171109
...200);//创建精灵并把它放倒200位置 * sp.graphics.drawTexture(texture);//把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台 * * <p>也可以获取原始图片数据,分享到网上,从...
来源: Laya_社区 发布时间: 20180626
...其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Matri...
来源: laya_api 发布时间: 20170422
...anvas.getTexture(); //获取纹理 StageUI.instance.saveTexture.graphics.drawTexture(texture, 0, 0, 0, 0);//绘制截取到的纹理 //可以获得base64位图,用于保存或上传到服务器 StageUI.instance.saveBase64.texture = texture; htmlCanvas.toBase64("png",0.8,this.getBase64); } getB...
来源: Laya_社区 发布时间: 20190111
...ture(sharedCanvas); var sp2 = new Laya.Sprite(); sp2.x = 300; sp2.graphics.drawTexture(_texture,0,0,100,100); Laya.stage.addChild(sp2); 文档说好像可以 报错了。 this.bitmap.activeResource is not a function 有其他的方法将一个canvas的内容绘制到另外一个canvas吗 附件 :...
来源: Laya_社区 发布时间: 20171113
...“hero_03.png”这个文件放到atlas下,把url改成 hero.graphics.drawTexture(Laya.loader.getRes("res/atlas/role/hero_03.png")); 2017-11-20 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 刚刚你这一行报错,我就把你这一行代码改了,我不清楚,这是不是你...
来源: Laya_社区 发布时间: 20171120
...其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Mat...
来源: laya_api 发布时间: 20170929
...其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Matri...
来源: laya_api 发布时间: 20170422