大约有 357 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0039 秒)
Laya_社区(157) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(7) Laya2.0_示例(6) Laya_示例(5) Laya3.0_文档(4)
...| Methods Packagelaya.uiClasspublic class AutoBitmapInheritanceAutoBitmap Graphics Object AutoBitmap 类是用于表示位图图像或绘制图形的显示对象。 封装了位置,宽高及九宫格的处理,供UI组件使用。 Public Properties Hide Inherited Public Properties Show Inherited...
来源: Laya2.0_api 发布时间: 20190513
... 要回复问题请先登录 发起人 Mr.余 相关问题 分享:使用 graphics.clipRect 的注意事项 Laya.Tween.to Spine、Dragonbones使用注意事项 LayaNative使用socket传输数据注意事项 使用TextField的注意事项? LayaBox加载TiledMap地图和注意事项 【分享】图...
来源: Laya_社区 发布时间: 20181225
...mage.cacheAs = "bitmap"; bgImage.addChild(pMask); let angle = 45; pMask.graphics.clear(); let radius = 80; pMask.graphics.drawPie(45, 45, radius, angle, 90, "#000000"); pMask.blendMode = "destination-out"; 2019-06-15 0 0 分享 微博 QZONE 微信 王壮壮 赞同来自: https://blog.csdn.net/wan...
来源: Laya_社区 发布时间: 20190615
... = rect; pos = bian * 0.5; } public function set360(value:int):void { this.graphics.clear(); if(value == -1){ return; } this.graphics.drawPie(pos,pos,r,START+(360 - value), 270 , COLOR ,null,0); } private function ef():void { if( TheGame.GetServerTime() > endTime ){ this.stop(); return; } var now...
来源: Laya_社区 发布时间: 20171124
...exture(sp.drawToCanvas(sp.width,sp.height,0,0)) sp.graphics.clear() sp.graphics.destroy() tex.destroy() tex.disposeBitmap() tex.bitmap.releaseResource(); } 每次调用都不会刷...
来源: Laya_社区 发布时间: 20190120
...amp;& (i = 0); //清除sp节点的所有绘图(不含子节点) sp.graphics.clear(); //在sp节点上重绘纹理 sp.graphics.drawTexture(res[i]); i++; }); }); } } 2.2 可带类型的多资源加载方式 假如,多数资源不需要带类型,有的资源又需要用类型区别,该如...
来源: Laya3.0_文档 发布时间: 20230728
...变化 _mask.size(_barImage.width * _percent, _barImage.height); _mask.graphics.clear(); _mask.graphics.drawRect(0, 0, _mask.width, _mask.height, "#FF0000"); _barImage.mask = null; _barImage.mask = _mask; 试过需要置mask为null,然后再设置一次,...
来源: Laya_社区 发布时间: 20170809
... this.imgSp = new Sprite(); this.imgSp.graphics.clear(); this.imgSp.cacheAs = "bitmap"; Laya.stage.addChild(this.imgSp); this.imgSp.graphics.drawTexture(rtex); 2020-06-02 0 0 分享 微博 Q...
来源: Laya_社区 发布时间: 20200529
...Laya.loader.load([this.monkey1,this.monkey2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ //创建一个实例 this.img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(this.img); //显示初始化绘制的图片 this.switchImg();...
来源: Laya_社区 发布时间: 20180226
... var color = (flag = !flag)?"#A52A2A":"#FFA500" c.graphics.clear(); c.graphics.drawRect(50, 50, 300, 100, color); Laya.stage.addChild(c); } })(); 2017-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20170510