大约有 368 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0048 秒)
Laya_社区(167) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(12) Laya2.0_示例(6) Laya3.0_文档(3) Laya_示例(2)
如何获取Sprite上用graphics.drawTexture绘制的texture? 如何获取Sprite上用graphics.drawTexture绘制的texture? 如定义为faceImage的Sprite,我用faceImage.graphics.drawTexture绘制图片哦,也有正常显示了,但我通过faceImage.texture却是null。我需要拷贝该...
来源: Laya_社区 发布时间: 20170816
关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 自己的问题 2019-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 截图和代码...
来源: Laya_社区 发布时间: 20190508
...纹理 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
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
graphics.drawTexture 有问题,紧急! 我想实现一个矢量画图功能,但是单纯的使用graphics.drawLine会发现DrawCall的指数会不断增多,为了优化相处了一个方案。 没画完一条线都将此画布drawToCanvas转成一个Texture,再clear这个画布,然...
来源: Laya_社区 发布时间: 20170724
请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 Graphic drawTextures () method public function drawTextures(tex:Texture, pos:Array):void批量绘制同样纹理。 Parameters tex:Texture — 纹理。 pos:Array — 绘制次数和坐标。 请教第二个...
来源: Laya_社区 发布时间: 20170405
请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 我可以另外建一个圆形比如 var mapMask = new Laya.Sprite(); mapMask.size(100,100); ma...
来源: Laya_社区 发布时间: 20181125
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
...发基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先熟悉一...
来源: Laya2.0_文档 发布时间: 20210715
...发基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先熟悉一...
来源: Laya2.0_文档 发布时间: 20210715