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

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

211. Test类继承 Laya.Sprite 然后重写render方法,如何将一个RGBA图像绘制到画布里面 [ 53%]

...什么,添加到舞台上?添加到舞台上可以用sprite.graphics.drawTexture,你传一个文理texture就可以显示到舞台上!如果回答的不对,你可以继续追问! 2017-02-16 0 3 分享 微博 QZONE 微信 157*****121 赞同来自: 都不知道你在问什么,描述清楚...

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

212. 某些机型drawToCanv绘图颜色变深 [ 53%]

...ew Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台   2018-02-08 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...

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

213. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 53%]

...补一个 this.rightBg = new laya.display.Sprite(); this.rightBg.graphics.drawTexture(laya.resource.Texture.createFromTexture(this.bgTexture,32*29,0,32,96), 0, 0, 32, 96); this.rightBg.width = 32; this.addChild(this.rightBg); } switch(type){ case 1: this.rightBg.visible = false; this.bg.graphics.dra...

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

214. 2D性能优化 · LayaAir3.0文档 · LAYABOX [ 53%]

...ader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.height); Laya.stage.addChild(sp); })); 使用Graphics.drawTexture并不会自动设置容器的宽高,但是可以使用Texture的宽高赋予容器。毋庸置疑,...

来源: Laya3.0_文档 发布时间: 20231008

215. 微信小游戏wxmin图片加载有点问题 [ 53%]

...res/mao.jpg') // console.log(t) // var a = new Laya.Sprite() // a.graphics.drawTexture(t, 0,0) // a.scaleX = 0.3 // a.scaleY = 0.4 // a.pos(0,300) // Laya.stage.addChild(a) // })) // ape.pos(100, 200) // var c = -15 // Laya.timer.frameLoop(40, null, function () { // c += 0.00001 // console.log(c) //...

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

216. TypeError: Cannot read property '_byteLength' of null [ 52%]

...Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' TypeError: Laya.MovieClip is not a constr...

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

217. laya.ui.Slider [ 52%]

...其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite  tick : Number 滑动的刻度值,滑动数值为tick的整数倍。默认值为1。 Slider timer : Timer时间控制器,默认为Laya.timer。Node toolTip : * 鼠标悬停提示。 可以赋值为...

来源: laya_api 发布时间: 20170929

218. laya.ui.AsynDialog [ 52%]

...其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node toolTip : * 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ,用来实现自定义样式的鼠标提示和参数携带等...

来源: laya_api 发布时间: 20170929

219. laya.ui.Panel [ 52%]

...其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node toolTip : * 鼠标悬停提示。 可以赋值为文本 String 或函数 Handler ,用来实现自定义样式的鼠标提示和参数携带等...

来源: laya_api 发布时间: 20170929

220. laya.display.Sprite [ 52%]

...制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而实现截图效果,示例: var htmlCanvas:H...

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