大约有 12 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0026 秒)
...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
...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
...素数据) // 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
...:int, mipmap:Boolean = true) 创建一个 Texture2D 实例。 Texture2D getPixels():Uint8Array 返回图片像素。 Texture2D load(url:String):Texture2D[static] 加载Texture2D。 Texture2D onAsynLoaded(url:String, data:*, params:Array):void[override] private Texture2DProtected Methods M...
来源: laya_api 发布时间: 20170929
...lendMode = "destination-out"的Sprit容器 3、擦除后使用image.source.getPixels(x,y,width,height)获取的数据和未擦除前相同 4、这样就实现了擦除的效果,那这样去获取擦除后的纹理像素点呢? 2017-04-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20170407
...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
...nfilter:int, mipmap:Boolean = true):DataTexture2D[static] DataTexture2D getPixels():Uint8Array 返回图片像素。 DataTexture2D load(url:String, w:int = 0, h:int = 0, magfilter:int, minfilter:int):DataTexture2D[static] 加载Texture2D。 DataTexture2D onAsynLoaded(url:String, data:*, par...
来源: laya_api 发布时间: 20170929
...ageSprite:Laya.Sprite; var uint8Array:Uint8Array = imageNode.source.bitmap.getPixels(); //console.log("0000000000000 == " + uint8Array.length); imageNode.source.bitmap.setPixels(uint8Array,0); 附件 : --> 2019-09-23 3 条评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20190923
...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
....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