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

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

21. getPixels中的bug [ 87%]

getPixels中的bug 引擎版本 2.1.0beta, 错误文件:laya.core.js Texture中的 getTexturePixels方法有问题,uv是null 附件 : --> 2019-06-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 qwe822095...

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

22. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture[ 83%]

...:Texture = new Texture(hc); trace(tex.width + "---" + tex.height + "---" + getPixel(tex)); /*获取所画曲线鼠标点击处的像素,为何坐标对不上? 导致无法拿到正确位置的Texture*/ /*var spr:Sprite = new Sprite(); spr.graphics.drawTexture(tex); this.addChild(spr); spr.pos(90...

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

23. laya.d3.resource.DataTexture2D [ 80%]

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

24. getimagedata 和putimagedata问题 [ 80%]

..., 需要通过 drawToCanvas 然后再 new 一个texture 然后 texture.getPixels() 这 每次都要重新这样获取像素? 2. 在webgl 的情况下,上面的那个方法无效 3. 获取到了像素,但是putimagedata 又不生效 由于官方提供的 texture.getPixels() 直接返回的...

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

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

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

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

26. laya.resource.Texture2D [ 78%]

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

27. laya.resource.Texture [ 78%]

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

28. 问题:获取色块已擦除掉的面积的思路 [ 77%]

...:获取色块已擦除掉的面积的思路 因为用Laya的Texture操作getPixels获取像素点,结果有内存泄漏的问题。 那么还有什么方法可以实现:如何获取一块色块被擦除掉的比例? 2018-03-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

29. 关于2.0.1beta 2D的一些问题 [ 76%]

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

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

30. setSubPixels画布擦除不掉 [ 75%]

...素数据) // 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