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

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

1. drawTexturematrix参数是怎么用的 [ 100%]

drawTexturematrix参数是怎么用的 为什么设置旋转矩阵不生效 2018-07-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Sy 赞同来自: const matrices = Array(4).fill('').map(_ => new Laya.Ma...

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

2. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 99%]

drawTexture时,Matrix对象,a=-1,无法实现水平翻转 g.drawTexture(texture,100, 100, texture.width, texture.height, new laya.maths.Matrix(-1)); 为何无法实现水平翻转? 绘制的图片直接看不见了,如果不设置matrix.a = -1就不会出现。 2017-02-21 添加评论 免...

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

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

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

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

4. drawtexture 想让绘制的图片旋转特定角度,怎么用matrix [ 97%]

drawtexture 想让绘制的图片旋转特定角度,怎么用matrix 2018-08-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: matrix有个rotation你按你选择的角度传参数就可以...

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

5. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 94%]

请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 我可以另外建一个圆形比如 var mapMask = new Laya.Sprite(); mapMask.size(100,100); ma...

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

6. 分享:Graphics下cmds命令流的使用! [ 92%]

...纹理 var box:Sprite=new Sprite(); Laya.stage.addChild(box); box.graphics.drawTexture(texture1,50,50,0,0,new Matrix(),0.5); box.graphics.drawTexture(texture2,200,50,0,0,new Matrix(),0.5); box.graphics.drawTexture(texture3,350,50,0,0,new Matrix(),0.5); box.graphics.drawTexture(texture4,500,50,0,0,ne...

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

7. graphics使用matrix的异常情况 [ 89%]

...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

8. laya.ani.GraphicsAni_API3.0 [ 81%]

...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

9. laya.display.Graphics_API3.0 [ 80%]

...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

10. laya.ui.AutoBitmap_API3.0 [ 80%]

...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