大约有 770 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0071 秒)
Laya_社区(540) Laya3.0_api(65) Laya2.0_api(59) laya_api(55) Laya2.0_文档(30) Laya3.0_文档(11) Laya2.0_示例(5) Laya_示例(5)
...并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),150,50); //添加到舞台 Laya.stage.addChild(this....
来源: Laya2.0_文档 发布时间: 20210715
...t: Texture = Laya.loader.getRes("load/0.png"); this.darwSprite.graphics.drawTexture(t,0,0); this.darwSprite.graphics.drawTexture(t,176,0); this.darwSprite.graphics.drawTexture(t,176*2,0); 采用这方式在sprite内部绘制了3个一样的png,每一个宽度...
来源: Laya_社区 发布时间: 20160718
...r.getRes("comp/image.png"); var ape1 = new Laya.Sprite(); ape1.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape1); //面板 var panel = new laya.ui.Panel(); panel.width = 500; panel.height = 500; panel.x = 200; var label = new laya.ui.Label...
来源: Laya_社区 发布时间: 20170401
...一个可视对象然后通过addChild方法添加到sprite里,不想用graphics.drawTexture方法,因为那种方法在获得sprite的高度和宽度方面有点问题 2016-10-27 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 1、如何在Loaded回调下添加dialog,你可以通过...
来源: Laya_社区 发布时间: 20161027
... var sp:Sprite = new Sprite(); Laya.stage.addChild(sp); sp.alpha = 0.8; sp.graphics.drawRect(50,50,50,50,"#ff0000"); var sp1:Sprite = new Sprite(); sp1.alpha = 0.5; //Laya.stage.addChild(sp1); //画扇形 当这个扇形画的角度是 0-360度时 舞台上红色矩形不见了 sp1.graphics.drawPie(...
来源: Laya_社区 发布时间: 20180111
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 表示显示对象的高度,以像素为单位。 高度默...
来源: laya_api 发布时间: 20170422
...es("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); 这可以正常运行,但是我把外面的 load 函数去掉,将第二个参数中的函数内容独立后却不能显示图片:var t:Textur...
来源: Laya_社区 发布时间: 20170804
...test.png");// 此图宽度只有1像素,横着平铺绘制无法显示 p.graphics.fillTexture(tex, 0, 0, 100, tex.height);// 无法显示 p.graphics.drawTexture(tex, 0, 0, 100, tex.height);// 正常显示 忘记说明了,native上显示有问题,网页是正常的 2018-10-25 添加评论 ...
来源: Laya_社区 发布时间: 20181025
... maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.name = "maskArea"; this.guideContainer.addChild(maskArea); this.interactionArea = new Laya.Sprite(); this.interactionArea.blendMode = "destinat...
来源: Laya_社区 发布时间: 20171222
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高...
来源: laya_api 发布时间: 20170929