大约有 28 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0026 秒)
...自: 你这是项目问题,需要自己来解决的哦! 你可以使用graphics随便画一个什么形状都行啊! 2018-04-19 0 0 分享 微博 QZONE 微信 hepengwei 赞同来自: 1.给Label设个背景色,bgColor属性 2.到组件的2D文件夹中拖一个Sprite作为Label的子节点,...
来源: Laya_社区 发布时间: 20180419
... 画个圆角矩形就这么难? 关于圆角不圆的问题 分享一个Graphics画圆角矩形的封装 Label怎样加圆角矩形背景? 圆角矩形交互 怎么实现图片的四个角弄成圆角 问题状态 最新活动: 2025-11-28 22:31 浏览: 648 关注: 2 人
来源: Laya_社区 发布时间: 20251128
... package utils { import laya.display.cmd.DrawPathCmd; import laya.display.Graphics; import laya.display.Sprite; /** * ... * @author Kun */ public class GraphicsUtil { /** * 绘画圆角矩形 * @param graghics Graghics对象 * @param x 开始绘制的x轴位置 * @param y 开始绘制的y轴位置 *...
来源: Laya_社区 发布时间: 20190117
...回复 cry_11858 赞同来自: cuixueying var sp:Sprite = new Sprite(); sp.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, 0, 110, 5, 5], ["lineTo", 110, 55], ["arcTo", 110, 60, 105, 60, 5], ["lineTo", 5, 60], ["arcTo", 0, 60, 0, 55, 5], ["lineTo", 0, 5], ["arcTo", ...
来源: Laya_社区 发布时间: 20170804
graphics的fillTexture 圆角图边缘有多出线条 var texture = LoadingManager.instance.getRes("res/progress.png"); var graphics=new Laya.Graphics(); graphics.fillTexture(texture,0,0,texture.width,texture.height,"repeat"); 如果用drawTexture就没问题,因为平铺需求 需要用到fillTe...
来源: Laya_社区 发布时间: 20180904
...ht*0.6,0,stageHeight*0.55,10], ["actTo",0,0,stageWidth*0.05,0,10], ]; this.graphics.drawPath(0,0,path,{fillStyle: "#ff0000"},{"strokeStyle":"#ffffff","lineWidth":"1"}); } Laya.class(login,"login",_super); var _proto = login.prototype; return login; })(Laya.Sprite); 2017-08-06 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20170806
... drawSomething() { sp = new Sprite(); Laya.stage.addChild(sp); //画线 sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 sp.graphics.drawCurves(352, 58, [0, 0, 19, -100, 39, 0, 58...
来源: Laya_示例 发布时间: 20251130
...thing() { let sp = new Laya.Sprite(); Laya.stage.addChild(sp); //画线 sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5); //画曲线 sp.graphics.drawCurves(352, 58, [0, 0, 19, -100, 39, 0, 58...
来源: Laya2.0_示例 发布时间: 20251130
.ui文件的Sprite的Graphics下没有Path 我想在.ui文件里面用上圆角遮罩,但是没有drawPath,想问下怎么做 2017-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自:...
来源: Laya_社区 发布时间: 20170517
Graphics实现透明度显示 2016-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: var sp:Sprite=new Sprite(); var graphics:Graphics=new Graphics(); graphics.save(); graphics.alpha(0...
来源: Laya_社区 发布时间: 20161130