大约有 718 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0047 秒)
Laya_社区(510) Laya3.0_api(67) Laya2.0_api(61) laya_api(55) Laya2.0_文档(13) Laya2.0_示例(7) Laya3.0_文档(3) Laya_示例(2)
...纹理 var box:Sprite=new Sprite(); Laya.stage.addChild(box); box.graphics.drawTexture(texture1,50,50,0,0,new Matrix(),0.5); box.graphics.drawTexture(texture2,200,50,0,0,new Matrix(),0.5); box.graphics.drawTexture(texture3,350,50,0,0,new Matrix(),0.5); box.graphics.drawTexture(texture4,500,50,0,0,ne...
来源: Laya_社区 发布时间: 20170519
...; Laya.stage.addChild(ape); ape.loadImage(monkey1Path); // 方法2:使用drawTexture Laya.loader.load(monkey2Path, Laya.Handler.create(this, function () { let monkey2 = Laya.loader.getRes(monkey2Path); let ape2 = new Laya.Sprite(); Laya.stage.addChild(ape2); ape2.graphics.drawTexture(monkey2, 100,...
来源: Laya2.0_示例 发布时间: 20250223
...lign != "right") { this.graphics.drawTexture(te, i * te.width, 0, te.width, te.height); } else { this.graphics.drawTexture(te, this.width - ((splitArr.length - i) * te.width), 0, te...
来源: Laya_社区 发布时间: 20170601
...019-05-27 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 建议用drawTexture 2019-05-27 0 1 分享 微博 QZONE 微信 186*****868 赞同来自: 用drawTexture 怎么在微信的分享上用上这张截图 2019-10-10 0 0 分享 微博 QZONE 微信 Smallbore 赞同来自: 用drawTexture...
来源: Laya_社区 发布时间: 20181201
...w Sprite(); var t:Texture = Laya.loader.getRes("res/bg.png"); ape.graphics.drawTexture(t,0,0); var t1:Texture = Laya.loader.getRes("res/wzq.png"); ape.graphics.drawTexture(t1,0,0); var t2:Texture = Laya.loader.getRes("res/rkfb.png"); ape.graphics.drawTexture(t2,0,0); var t3:Texture = Laya.loader.get...
来源: Laya_社区 发布时间: 20180605
... 以下是原文的代码,也是我疑问的地方:// 方法2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTe...
来源: Laya_社区 发布时间: 20170804
...ite 什么克隆一个对象啊? 在下面的“ tempSpr2.graphics.drawTexture(tempSpr.texture, 0, 0, tempSpr.width, tempSpr.height);”中 tempSpr.texture 是空的 if (data && data.items != []) { let tempSpr: Sprite = new Sprite(); let tempImg:...
来源: Laya_社区 发布时间: 20170508
...xture = Laya.loader.getRes(imgUrl); //绘制纹理 this.img.graphics.drawTexture(texture); //设置纹理宽高 this.img.size(texture.width, texture.height); <!-- 我想把加粗部分换成 this.img.graphics.drawTexture(Laya.loader.getRes(imgUrl),100,50,60,60); 为什么就不...
来源: Laya_社区 发布时间: 20180226
...ct_bottom.drawToTexture(100, 100, 0, 0); top_rect.graphics.drawTexture(t, 0, 0, 200, 100); 附件 : --> 2019-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 宁远 赞同来自: 找...
来源: Laya_社区 发布时间: 20190730
...inue ; texture=this.sources[index]; if (isHorizontal)this.graphics.drawTexture(texture,dX+i *(texture.sourceWidth+this.spaceX),0,texture.sourceWidth,texture.sourceHeight); else this.graphics.drawTexture(texture,0+dX,i *(texture.sourceHeight+this.spaceY),texture.sourceWidth,texture.source...
来源: Laya_社区 发布时间: 20180228