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

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

41. 使用 setPixels 设置像素,会同时修改掉其他图片的像素 [ 58%]

....Texture2D = this.bg2.source.bitmap as Laya.Texture2D; let pixels = bitmap.getPixels(); console.log("pixels:",pixels); for (let i = 0; i < pixels.length; i += 1) { pixels[i] = 0 } bitmap.setPixels(pixels,0) 是这样的。demo中好想写错了 附件 : --> myLaya.zip 2022-08-11 1 条评论 免...

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

42. 如何获取webgl模式下屏幕上的像素值 [ 57%]

... 与内容相关的链接 提交 1 个回复 Volumex 赞同来自: Texture.getPixels方法内 var tUint8Array=tRenderTarget.getData(0,0,width,height); tUint8Array为空, 走进去应该是因为 var canRead=(gl.checkFramebufferStatus(/*laya.webgl.WebGLContext.FRAMEBUFFER*/0x8D40)===/*laya.webgl.We...

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

43. layabox支持getImageData接口吗 [ 57%]

...享 微博 QZONE 微信 Laya_XS 赞同来自: 你试试Texuture里有  getPixels 这个方法,目前封装了getImageData,你看看可以满足你的需求吗,这个接口性能损耗比较大,不建议频繁调用 2018-04-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...

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

44. 如何获取图片每个像素点的RGB? [ 57%]

...exture(my_canvas); //使用htmlCanvas创建Texture let pixels = my_texture.getPixels(700, 8, 10, 1); //得到像素点   2018-01-07 2 0 分享 微博 QZONE 微信 cuixueying 赞同来自: layaAir下不支持像素级的操作! 2017-04-05 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回...

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

45. matter中更换texture [ 56%]

...夹的图片,有什么好的方法么 如果更换Sprite图片 Texture的getPixels()在Android下调用提示is not a function 如何实现将相机渲染的画面显示在ui上 laya3d camera.rendertarget 返回的时rendertexture 不能赋值给image的texture 在2.0中如何将Browser.createElemen...

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

46. layabox 获取图片非透明点方法 [ 56%]

...能走的方案,但是实际在算法中用到过去贴图像素点的 getPixels方法时发现性能急剧下降

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

47. 如何获取animation对象像素值 [ 56%]

...何获取animation对象像素值 项目代码如下: this.body.texture.getPixels(this.bound.x + i, this.bound.y + j, 1, 1); 问题:   this.body已经是被显示在舞台上的animation对象了   animation的texture属性为什么是null。要去获取对象像素值怎么获取?   2016-1...

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

48. 微信小游戏截图问题 [ 55%]

...0, 0,this.ctx.width,this.ctx.height); console.log(htmlC) console.log(htmlC.getPixels(0,0,this.ctx.width,this.ctx.height)) 能搞定图片和texttrue,或者转化Uint8Array了,可是能怎么用啊?怎么转URL,保存到后台啊?   2019-11-24 1 条评论 免费帖 --> 分享 微博 QZONE ...

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

49. laya获取图片像素后重新设置回去带有透明像素的地方显示有问题 [ 55%]

...IMain/Common_atlas0.png");              let x = tex.bitmap.getPixels();              console.log("------------------------",x);                          tex.bitmap.setPixels(x);              let sp = new Laya.Sprite();      ...

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

50. laya有没有as3的drawTriangles [ 55%]

...览: 1035 关注: 2 人 cuixueying • 2017-06-09 11:36 texture类下有个getPixel,没有设置像素点的操作,建议最好使用js原生的方式来做吧!

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