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

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

31. 图片像素精准点击问题! [ 75%]

...ZONE 微信 vboyer 赞同来自: hitTest(t: Laya.Image) { let s = t.source.getPixels(t.mouseX, t.mouseY, 1, 1).join(''); if (s == '0000') return false; return true; } if (hitTest(target)) { // do hitTest action; }   通过检测像素点颜色值来判断点击区域,这里不能用 on(Laya.Event...

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

32. laya.resource.Texture_API3.0 [ 73%]

...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

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

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

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

34. matter中更换texture [ 71%]

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

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

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

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

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

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

...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

37. laya.resource.Texture [ 69%]

...tDispatcher  getIsReady():Boolean 获取是否可以使用。 Texture  getPixels(x:Number, y:Number, width:Number, height:Number):Uint8Array 获取Texture上的某个区域的像素点 Texture  getTexturePixels(x:Number, y:Number, width:Number, height:Number):Uint8ArrayTexture hasListener(typ...

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

38. laya.resource.Texture2D_API3.0 [ 68%]

...e _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getPixels gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once setDDSData setHDRData setImageData setKTXData setPixelsData setSubPixelsData destroyUnusedResources load Constructors constructor new Tex...

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

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

...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

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

....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