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

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

271. 图片如何切割 AS3 [ 87%]

...mg:Image = new Image();  var t:Texture = Laya.loader.getRes(_resUrl); img.graphics.save();//必须要调用 否则报错  img.graphics.clipRect(100,100,200,200);  img.graphics.drawTexture(t);  img.graphics.restore();  this.addChild(img); 2019-01-11 0 0 分享 微博 QZONE 微信 为什么被折...

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

272. canvas如何绘制到屏幕上? [ 87%]

....List绘制了排行榜,但是触摸没有滚动响应 如何给Sprite的graphics绘制的线条添加发光滤镜? 如何获取Sprite上用graphics.drawTexture绘制的texture? webgl 绘制graphics出报错 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写...

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

273. laya.ani.bone.BoneSlot_API3.0 [ 86%]

.../BoneSlot.ts:472 用原始数据拷贝出一个 Returns BoneSlot draw draw(graphics: GraphicsAni, boneMatrixArray: any[], noUseSave?: boolean, alpha?: number): void Defined in laya/ani/bone/BoneSlot.ts:212 把纹理画到Graphics上 Parameters graphics: GraphicsAni boneMatrixArray: any[] Default val...

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

274. sprite.loadImage加载图片怎么设置要显示的x,y坐标和宽高? [ 86%]

...: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 用 graphic.drawTexture 2019-02-14 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 仰望星空 相关问题 请问LayaAir中如何使图片以圆形的方式显示?...

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

275. 设置圆形的zOrder [ 86%]

...天 不是很清楚你说的问题,不知道你是不是创建了一个Graphics circle,graphics都是绘制在最下面的,要放到其他图片上层,你可以创建一个sprite作为容器,把circle作为sprite的子对象,这样控制sprite的层级即可达到你要的效果了 2018-...

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

276. laya.d3.graphics.Vertex.VertexMesh [ 86%]

...Index | Frames No Frames VertexMeshMethods | Constants Packagelaya.d3.graphics.VertexClasspublic class VertexMeshInheritanceVertexMesh Object ... Public Methods  MethodDefined By  getVertexDeclaration(vertexFlag:String, compatible:Boolean = true):VertexDeclaration[static] 获取顶点声明...

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

277. laya.d3.graphics.VertexPositionNormalColorTextureSkinTangent [ 86%]

...PositionNormalColorTextureSkinTangentProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTextureSkinTangentInheritanceVertexPositionNormalColorTextureSkinTangent ObjectImplements IVertex VertexPositionNormalTextureSkin 类用于创建位置、法线、纹理、...

来源: laya_api 发布时间: 20170929

278. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 86%]

...); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height); hitArea.hit = graphic; skeleton.hitArea = hitArea; Laya.stage.graphics.drawRect(-rectangle.x, -rectangle.y, recta...

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

279. 绘制矩形与圆角矩形(JavaScript-LayaAir基础篇(JS)-矢量图) [ 86%]

...形 ### 一、用drawRect方法绘制矩形 在API中搜索`laya.display.Graphics`类可以查看到该API的各种矢量绘图方法。其中"drawRect();"方法用于绘制矢量矩形。该方法的详细说明如下图所示: ​ ![图片](img/1.png) ​ (图1) 下面我们用LayaAir引擎...

来源: Laya2.0_文档 发布时间: 20210715

280. laya.d3.graphics.VertexPositionNormalColorTexture0Texture1 [ 86%]

...exPositionNormalColorTexture0Texture1Properties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTexture0Texture1InheritanceVertexPositionNormalColorTexture0Texture1 ObjectImplements IVertex VertexPositionNormalColorTexture 类用于创建位置、法线、颜色、纹...

来源: laya_api 发布时间: 20170929