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

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

1. 关于适配有点疑惑 [ 100%]

...); })(); function createCantralRect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); var rect1 = new Sprite(); rect1.graphics.drawRect(Laya.stage.width / 3 * 2 , Laya.stage.height / 3 * 2 - 65, 100, 100, "blue"); // rect1.graphics.drawRect(Lay...

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

2. laya.ani.GraphicsAni_API3.0 [ 92%]

...wCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate create recycle Constructors constructor new GraphicsAn...

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

3. laya.ui.AutoBitmap_API3.0 [ 89%]

...wCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale setState strokeText transform translate Constructors constructor new AutoBitmap(): Au...

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

4. laya.display.Graphics_API3.0 [ 89%]

...wCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate Constructors constructor new Graphics(): Graphics Defi...

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

5. laya.display.Graphics [ 80%]

...eColor:* = null, lineWidth:Number = 1):void 绘制多边形。 Graphics  drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics  drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:N...

来源: laya_api 发布时间: 20170929

6. laya.ui.AutoBitmap [ 76%]

...ineColor:* = null, lineWidth:Number = 1):void 绘制多边形。 Graphics drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Num...

来源: laya_api 发布时间: 20170929

7. laya.ui.AutoBitmap [ 76%]

...r:* = null, lineWidth:Number = 1):DrawPolyCmd 绘制多边形。 Graphics drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):DrawRectCmd 绘制矩形。 Graphics drawTexture(texture:Texture, x:Number = 0, y:Number = 0, width:Number = 0,...

来源: Laya2.0_api 发布时间: 20190513

8. laya.display.Graphics [ 71%]

...* = null, lineWidth:Number = 1):DrawPolyCmd 绘制多边形。 Graphics  drawRect(x:Number, y:Number, width:Number, height:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):DrawRectCmd 绘制矩形。 Graphics  drawTexture(texture:Texture, x:Number = 0, y:Number = 0, width:Number = ...

来源: Laya2.0_api 发布时间: 20190513

9. 绘制图形 · LayaAir3.0文档 · LAYABOX [ 71%]

... laya.display.Graphics 类可以查看到API的各种矢量绘图方法。 drawRect fillText drawPath drawCircle drawPie drawLine drawLines drawPoly drawCurves ...... 下面将对这些Graphics进行讲解。 二、绘制矩形与圆角矩形 2.1 IDE绘制矩形 在Sprite对象的 Graphics 组件中...

来源: Laya3.0_文档 发布时间: 20241014

10. 2D性能优化 · LayaAir3.0文档 · LAYABOX [ 55%]

...使用getBounds/ getGraphicBounds。 var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); getBounds可以满足多数多数需求,但由于其需要计算边界,不适合频繁调用。 设置容器的aut...

来源: Laya3.0_文档 发布时间: 20241014