• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 717 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)

51. 分享:Graphics下cmds命令流的使用! [ 88%]

...纹理 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

52. Sprite-显示图片 [ 87%]

...; 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_示例 发布时间: 20240930

53. 最新版本 1.7.5 beta fontClip [ 85%]

...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

54. laya2.0 drawToCanvas 在微信上报ImageData is not defined [ 85%]

...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

55. 图层叠加的实现 [ 85%]

...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

56. 关于Laya.loader.load和getRes的问题 [ 85%]

... 以下是原文的代码,也是我疑问的地方:// 方法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

57. 克隆sprite [ 84%]

...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

58. 新人求教!!! [ 84%]

...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

59. drawToTexture 绘制函数不工作呢 [ 84%]

...ct_bottom.drawToTexture(100, 100, 0, 0);         top_rect.graphics.drawTexture(t, 0, 0, 200, 100);       附件 : --> 2019-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 宁远 赞同来自: 找...

来源: Laya_社区 发布时间: 20190730

60. FontClip问题 [ 83%]

...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