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

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

31. 关于2.0.1beta 2D的一些问题 [ 73%]

...宽高,希望官方可以优化下。 2、mask有bug 3、关于Texture.getPixels方法有问题,如果是单张图片的纹理获取的没有问题,如果是图集中的纹理那么获取的数据就不对了 附件 : --> 2019-03-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

32. Image缓存bitmap后怎样获取缓存后的像素数据? [ 73%]

...lendMode = "destination-out"的Sprit容器 3、擦除后使用image.source.getPixels(x,y,width,height)获取的数据和未擦除前相同 4、这样就实现了擦除的效果,那这样去获取擦除后的纹理像素点呢? 2017-04-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

33. 在创建了 Textture2D如何对其进行宽高赋值 [ 73%]

...ht都是只读的。求解答。 另外我想设置像素,我看到可以getPixels ,但没有setPixels也同样求解。 我用的是 Laya 1.7.20 2019-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 155**...

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

34. setSubPixels画布擦除不掉 [ 67%]

...素数据) // this.clearTexture();//清除目标纹理的像素 // tex2d.getPixels(); /* let p1 = this.aImg.source.getPixels(0,0,tex2d.width,tex2d.height); let tex1 = new Laya.Texture2D(tex2d.width,tex2d.height); tex1.setPixels(p1); let tex22:Laya.Texture = new Laya.Texture(); tex22.bitmap = tex1; t...

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

35. laya.resource.Texture2D [ 65%]

...2D generateMipmap():void 通过基础数据生成mipMap。 BaseTexture  getPixels():Uint8Array 返回图片像素。 Texture2D  load(url:String, complete:Handler):void[static] 加载Texture2D。 Texture2D  loadImageSource(source:*, premultiplyAlpha:Boolean = false):void 通过图片源填充...

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

36. laya.resource.Texture [ 64%]

...ent(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getPixels(x:Number, y:Number, width:Number, height:Number):Array 获取Texture上的某个区域的像素点 Texture hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦...

来源: laya_api 发布时间: 20170929

37. input失去焦点 闪屏 [ 59%]

...动的时候,有时候会有一条的透明图片在闪屏 调用texture.getPixels的时候会导致闪屏 问题状态 最新活动: 2017-05-05 11:43 浏览: 1868 关注: 3 人 qqqwwwaaasss • 2017-05-05 12:17 好的 qqqwwwaaasss • 2017-05-05 15:26 是有问题吧 雪莹 cuixueying • 2017-05...

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

38. 如何设置Texture 某个像素点的信息 [ 59%]

如何设置Texture 某个像素点的信息 Texture 可以通过 getPixels 获取区域的像素信息 如何更改某个位置的像素信息? 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian ...

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

39. laya.resource.Texture_API3.0 [ 58%]

...mory _setCreateURL _setGPUMemory destroy disposeBitmap event getCachedClip getPixels getTexturePixels hasListener isCreateFromURL load off offAll offAllCaller on once recoverBitmap setTo create createFromTexture destroyUnusedResources Constructors constructor new Texture(source?: Texture | BaseTextu...

来源: Laya3.0_api 发布时间: 20231115

40. 玩一玩不能获取到正确读取像素图 [ 58%]

...g") as Laya.Texture; if(navTexture != null) { let pixelBuffer = navTexture.getPixels(0, 0, navTexture.width, navTexture.height);        Texture在玩一玩上获得的像素都是0,在其它地方都是对的。 附件 : --> ClientTest.zip 2018-11-14 添加评论 免费帖 --> 分享 微博 Q...

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