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

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

1. 如何获取Sprite上用graphics.drawTexture绘制的texture[ 100%]

如何获取Sprite上用graphics.drawTexture绘制的texture? 如何获取Sprite上用graphics.drawTexture绘制的texture? 如定义为faceImage的Sprite,我用faceImage.graphics.drawTexture绘制图片哦,也有正常显示了,但我通过faceImage.texture却是null。我需要拷贝该...

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

2. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 98%]

关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 自己的问题 2019-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 截图和代码...

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

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

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

4. webgl 模式下 用graphics.drawTexture 平铺图片 图片不显示是什么原因 [ 97%]

webgl 模式下 用graphics.drawTexture 平铺图片 图片不显示是什么原因 this.texture1 = Laya.loader.getRes('res/images/bg1.png'); this.texture2 = Laya.loader.getRes('res/images/bg2.png'); var repeatX = 8 ; var repeatCount = Math.ceil(stageW / repeatX); for(let i = 0; i < repeatCount ...

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

5. graphics.drawTexture 有问题,紧急! [ 97%]

graphics.drawTexture 有问题,紧急! 我想实现一个矢量画图功能,但是单纯的使用graphics.drawLine会发现DrawCall的指数会不断增多,为了优化相处了一个方案。   没画完一条线都将此画布drawToCanvas转成一个Texture,再clear这个画布,然...

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

6. 请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 [ 96%]

请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 Graphic  drawTextures () method  public function drawTextures(tex:Texture, pos:Array):void批量绘制同样纹理。 Parameters tex:Texture — 纹理。   pos:Array — 绘制次数和坐标。   请教第二个...

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

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

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

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

8. drawTexture 画出来的数据会有以前的数据 [ 95%]

drawTexture 画出来的数据会有以前的数据 private var iconSpr:Sprite; private var htmlCanvas:HTMLCanvas; private var texture:Texture; private var xNum:int = 0; private var yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640;...

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

9. 显示与切换图片(JavaScript-LayaAir基础篇(JS)-位图) [ 93%]

...发基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先熟悉一...

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

10. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 92%]

...发基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先熟悉一...

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