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

大约有 293 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0045 秒)

61. laya.display.cmd.DrawLineCmd_API3.0 [ 78%]

...条曲线 Hierarchy DrawLineCmd Index Properties fromX fromY lineColor lineWidth percent toX toY ID Methods getBoundPoints recover Properties fromX fromX: number Defined in laya/display/cmd/DrawLineCmd.ts:14 X轴开始位置。 fromY fromY: number Defined in laya/display/cmd/DrawLineCmd.ts:18 Y轴...

来源: Laya3.0_api 发布时间: 20231115

62. laya.display.cmd.DrawCircleCmd_API3.0 [ 78%]

...制圆形 Hierarchy DrawCircleCmd Index Properties fillColor lineColor lineWidth percent radius x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Defined in laya/display/cmd/DrawCircleCmd.ts:27 填充颜色,或者填充绘图的渐变对象。 lineColor lineColor: any Defin...

来源: Laya3.0_api 发布时间: 20231115

63. Image偶尔显示不了 [ 78%]

...用的是LayaAirIDE2.3,图片偶尔显示不了,经查parent,visible,x,y,width,height,alpha,skin都正常,资源所在图集也存在,不过小图的source的_referecentCount==0,_texture==null。不知是不是这个原因引起?      如附件图,black.png是用到的小图,所在...

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

64. laya.display.cmd.DrawPathCmd_API3.0 [ 78%]

...athCmd.ts:30 (可选)画笔定义,支持以下设置{strokeStyle,lineWidth,lineJoin:"bevel|round|miter",lineCap:"butt|round|square",miterLimit}。 x x: number Defined in laya/display/cmd/DrawPathCmd.ts:14 开始绘制的 X 轴位置。 y y: number Defined in laya/display/cmd/DrawPathCmd.ts:18 ...

来源: Laya3.0_api 发布时间: 20231115

65. graphics绘制边框 梅点击一次旋转30°后边框位置偏移 [ 78%]

...边框位置偏移 let sp = new Laya.Sprite(); drawArr = [startX, 0, this.width, 0, this.width - startX, this.height, 0, this.height]; sp.graphics.drawPoly(0, 0, drawArr, fillColor, this.m_vo.c_StrokeColor, this.m_vo.c_StrokeThickness); 附件 : --> 2019-09-10 添加评论 免费帖 --> 分享 微...

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

66. QQ玩一玩 获取头像后的数据是 BK.Buffer,需要如何用laya的Image显示出来? [ 78%]

...openID, BuffInfo){ if(openID == openID1) { var buff = BuffInfo.buffer; var width = BuffInfo.width; var height = BuffInfo.height; BK.Script.log(0,0,"headeBuff :"+ openId + " buff:"+ buff + " width:"+ width +" height:"+height); var tex = new BK.Texture(buff,width,height); var sp =new BK.Sprite(200,200...

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

67. 使用webgl之后toDataUrl返回黑色的图像 [ 77%]

...rite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.height,WebGL); Stat.show(); Laya.stage.bgColor = "#ffcccc"; Laya.stage.on(Event.CLICK,this,onClick); sp= new Sprite(); sp.name='base'; sp.loadImage("logo.png"); Laya.stage.addChild(sp); } private function onCli...

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

68. 技术文档svg不可以使用 [ 77%]

...data = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +'<foreignObject width="100%" height="100%">' +'<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' +'<em>I</em> like ' +'<span style="color:white; text-...

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

69. Sprite.loadImage在Android平台无法卡死,web和iOS平台正常 [ 77%]

...放置头像, var sp = new Laya.Sprite(); sp.loadImage(url, 0, 0, widget.width, widget.height); //从网络加载图片生成Sprite widget.removeChildren(); // 防止重复提交,把之前生成的头像先删除 widget.addChild(sp); // 添加为只节点 }; 2017-12-29 添加评论 免费帖 -->...

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

70. laya.display.cmd.DrawTrianglesCmd_API3.0 [ 77%]

...lesCmd.ts:13 Methods getBoundPoints getBoundPoints(sp?: { height?: number; width: number }): number[] Defined in laya/display/cmd/DrawTrianglesCmd.ts:96 Parameters Optional sp: { height?: number; width: number } Optional height?: number width: number Returns number[] recover recover(): void Defined ...

来源: Laya3.0_api 发布时间: 20231115