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

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

1. drawtexture 想让绘制的图片旋转特定角度,如何设置旋转中心点(Matrix)? [ 100%]

LayaAir引擎 drawtexture 想让绘制的图片旋转特定角度,如何设置旋转中心点(Matrix)? 如题,drawtexture 想让绘制的图片旋转特定角度,如何设置旋转中心点(Matrix)?   同理,进行缩放如何设置中心点,看了源码,Matrix里没有设...

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

2. graphics使用matrix的异常情况 [ 91%]

...getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); })); 上面这段代码并没有得到图片缩放的效果,看到的现象是图片一直在往左移动 2017-06-09 添加评论 ...

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

3. laya.ani.GraphicsAni_API3.0 [ 85%]

...rawEllipse 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 GraphicsAni(): Grap...

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

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

...rawEllipse 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 Defined in la...

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

5. laya.ui.AutoBitmap [ 84%]

...olor:* = null, lineWidth:Number = 1):DrawRectCmd 绘制矩形。 Graphics drawTexture(texture:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, matrix:Matrix = null, alpha:Number = 1, color:String = null, blendMode:String = null):DrawTextureCmd 绘制纹理,相比drawImage...

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

6. laya.ui.AutoBitmap_API3.0 [ 83%]

...rawEllipse 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(): AutoBitmap ...

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

7. laya.display.Graphics [ 83%]

...or:* = null, lineWidth:Number = 1):DrawRectCmd 绘制矩形。 Graphics  drawTexture(texture:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, matrix:Matrix = null, alpha:Number = 1, color:String = null, blendMode:String = null):DrawTextureCmd 绘制纹理,相比drawImage...

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

8. 微信小游戏开放域缩放问题 [ 82%]

... = Laya.stage.width; sharedCanvas.height = Laya.stage.height; _sp.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height); Laya.stage.addChild(_sp); 开放域那边初始化的时候宽高和主域宽高是一致的。 这个写法在有些机器上是正常的,但到别的一...

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

9. laya.display.Graphics [ 80%]

...lineColor:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics  drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, m:Matrix = null, alpha:Number = 1):Array 绘制纹理。 Graphics  drawTextures(tex:Texture, pos:Array):void 批量绘制同样纹理...

来源: laya_api 发布时间: 20170929

10. laya.ui.AutoBitmap [ 78%]

..., lineColor:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, m:Matrix = null, alpha:Number = 1):Array 绘制纹理。 Graphics drawTextures(tex:Texture, pos:Array):void 批量绘制同样纹理...

来源: laya_api 发布时间: 20170929