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

大约有 446 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)

181. 加载的nativeimage处理 [ 59%]

...ure=Loader.getRes("ui/image.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture); Laya.stage.addChild(sp); } 2017-06-03 0 1 分享 微博 QZONE 微信 xiaojun 赞同来自: 是这个 2017-06-03 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: nativeimage和htmlimage是内部引...

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

182. 招H5客户端,坐标成都软件园 [ 58%]

...? 更新客户端版本后 所有的Text的位置都对不上了 Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, 3D模型的原点不在模型的中心上,这种情况该如何获取一个3D模型的中心点坐标? 问题状态 最新活动: 2018-05-...

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

183. 这方法加载不出来图片 Mac电脑 [ 58%]

...("res/RunGameImg/floor.png"); var ape: Sprite = new Sprite(); ape.graphics.drawTexture(t, 0, 0); this.addChild(ape); ape.pos(20, 220); 2017-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 JDL1807996924 赞同...

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

184. fillTexture使用问题 [ 58%]

fillTexture使用问题 sprite使用drawTexture是可以正常使用的,但是用fillTexture时无任何效果。 class Map extends laya.display.Sprite { static width: number = 1188; static height: number = 594; constructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.creat...

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

185. drawToCanvas在百度小游戏无法获得图像 [ 58%]

...canvas上面 * var sp:Sprite = new Sprite();//创建精灵 * sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台   在百度调试工具可以正常显示 在手机上显示无内容 2019-05-27 添加评论 免费帖 --...

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

186. 微信头像显示错误 [ 58%]

...错误 Uncaught TypeError: tex.once is not a function at Graphics.__proto.drawTexture (GameStart.max.js:9996) at Image.__proto.rebuild (GameStart.max.js:36588) at TimerHandler.__proto.run (GameStart.max.js:18041) at Timer.__proto._update (GameStart.max.js:17798) at Stage.__proto.render (GameStart.ma...

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

187. texture可以加载一个canvas吗 [ 58%]

...ture(sharedCanvas); var sp2 = new Laya.Sprite(); sp2.x = 300; sp2.graphics.drawTexture(_texture,0,0,100,100); Laya.stage.addChild(sp2);   文档说好像可以 报错了。 this.bitmap.activeResource is not a function 有其他的方法将一个canvas的内容绘制到另外一个canvas吗 附件 :...

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

188. 循环自绘的性能问题 [ 58%]

...; var texture:Laya.Texture = new Laya.Texture(sharedCanvas); this.graphics.drawTexture(texture, 0, 0, sharedCanvas.width, sharedCanvas.height) 目前性能很差,所以我想请教一下,有没有更优秀的方案? 2018-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

189. 代码里能控制图片的锚点吗? [ 58%]

... Image(); var texture = Laya.loader.getRes(heroidstr); m_herohead.graphics.drawTexture(texture); m_herohead.anchorX = 0.5; m_herohead.anchorY = 1; m_herohead.pos(m_heroPosX,m_heroPosY); m_mapbg.addChild(m_herohead);     我在代码里创建图片,可是设置锚点后,显示还是0,0没有...

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

190. 如何实现类似AS3的BitmapData.draw去绘制整个Sprite? [ 57%]

... 提交 1 个回复 Laya_XS 赞同来自: sprite的graphics变量,有个drawTexture,你可以一次绘制一个文理。不能跟as3点draw一样,可以直接draw一个显示对象到画布! 2017-02-23 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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