大约有 2,233 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0095 秒)
...对UI用位图做抠出destination-out计算,效果不正确,没有按图片Alpha来计算 在3D场景里面对UI用位图做抠出destination-out计算,效果是抠出来了一块图片大小的方形区域,没有按图片Alpha来计算;在2D场景里试了一下,效果是对的 附件 ...
来源: Laya_社区 发布时间: 20180412
...刷新。Sprite texture : Texture 设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,则会自动加载图片,然后显示 Sprite transform : ...
来源: Laya2.0_api 发布时间: 20190513
...ned in laya/display/Sprite.ts:1848 设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,则会自动加载图片,然后显示 Returns Texture Inhe...
来源: Laya3.0_api 发布时间: 20231115
关于图片加载路径的问题 请问关于Laya中,图片加在路径的正确写法 下面为我尝试的写法:(我是新人,感激不尽) 图片怎么附不上,我直接贴代码好了 var fireIcon =new Laya.Image(); fireIcon.loadImage("laya/assets/res/image/fireIcon.png",0,0,200,200,new Laya...
来源: Laya_社区 发布时间: 20180619
仅在Android微信小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets in...
来源: Laya_社区 发布时间: 20180609
...。 UIComponent texture : Texture 设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,则会自动加载图片,然后显示 Sprite toolTip : * ...
来源: Laya2.0_api 发布时间: 20190513
(canvas.toDataURL)在安卓机上base64图片的色差问题 在PC机、苹果手机上显色正常,但是用了好多台安卓机,显色异常,代码完全相同,这是为什么? 我的layaair(as3)1.7.19.1beta代码: var htmlCanvas:HTMLCanvas = p6_work.drawToCanvas(575, 102, 0,...
来源: Laya_社区 发布时间: 20180712
原生js传图片給laya的sprite,怎么设置其等比缩小? _pic是原生js的图片url,$pic是sprite,然而以下写$pic.height = 246;无效,加载后的图片还是100%显示,$pic.loadImage(_pic, 14, 192, 0, 0, Handler.create(this, function(){ $pic.height = 246; $pic.sc...
来源: Laya_社区 发布时间: 20170503
使用WebGL后,图片加载出错,不使用可以正常加载 使用Laya.init(600, 300, WebGL); 报错如下: Uncaught SecurityError: Failed to execute 'texSubImage2D' on 'WebGLRenderingContext': The cross-origin image at http://127.0.0.1/laya/studyLay ... y.png may not be loaded. 对应...
来源: Laya_社区 发布时间: 20160601
... <img src = '2'> 按照赋值顺序,逻辑上应该显示2对应的图片,但是实际上会根据加载顺序显示,有概率显示为1 为了加大出现概率,demo里我将两张图片文件大小做了很大区别 修复方法: HtmlImage类内部清理时并没有关闭当前加...
来源: Laya_社区 发布时间: 20241126