大约有 908 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
Laya_社区(631) Laya3.0_api(68) Laya2.0_api(57) laya_api(53) Laya2.0_文档(50) Laya3.0_文档(28) Laya2.0_示例(11) Laya_示例(10)
...见IDE新建2d示例项目 ** **本篇文章将对两个不同页面中的Image组件设置同一个runtime逻辑类来实现相同的功能,运行效果如动图0所示:** (图0) ### 一、给页面中的组件设置runtime类 在页面管理目录下创建两个UI页面,分别...
来源: Laya2.0_文档 发布时间: 20210715
edge无妨访问facebook的图片 Laya.init(600,400, WebGL); var image = new Laya.Image(); image.pos(4,2); image.size(33,33); image.skin = "https://platform-lookaside.fbs ... 3B%3B Laya.stage.addChild(image); 用edge无法访问该图片 用edge浏览器单独打开此图片可以打开 用firefox,...
来源: Laya_社区 发布时间: 20181116
...blic/Protected All Inherited Externals Only exported Menu Globals "laya/ui/Image" Image Class Image Image 类是用于表示位图图像或绘制图形的显示对象。 Image和Clip组件是唯一支持异步加载的两个组件,比如img.skin = "abc/xxx.png",其他UI组件均不支持异步...
来源: Laya3.0_api 发布时间: 20231115
...o之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Lay...
来源: Laya_社区 发布时间: 20180724
...的链接 提交 1 个回复 一点一滴 赞同来自: var sp = new Laya.Image(); var sb = new Laya.Image(); sp.name = "logo_" + nums; sb.name = "logo_bg_" + nums; userBoxSprite.addChild(sb); userBoxSprite.addChild(sp); // sb.loadImage(newBg1, x, y, singleWidth, singleHeight); sb.skin = newBg1; sb....
来源: Laya_社区 发布时间: 20180427
Image 2D图片 是不是没有自定义shader的方法???哪怕自己写了个shader也没法用上去。只能用3种滤镜就别无选择么? 如题,目前laya没有提供自定义shader给2D图片么。比如我想实现个自定义贴图的滤镜给Image。 2018-04-14 添加评论 免...
来源: Laya_社区 发布时间: 20180414
...{ import laya.display.Sprite; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; public class addPic { private var picUrl:String; private var pic:Sprite; private var picX:int; private var picY:int; public function addPic(str:String, x:int, y:int) { picUrl = str; picX = x;...
来源: Laya_社区 发布时间: 20170522
... 关注: 2 人 18336093936 • 2017-06-26 10:46 就是一个box下有多个Image我想循环改变照片的skin cuixueying • 2017-06-26 11:04 你把你的skin和image,有顺序的进行命名即可,譬如image_01,image_02,,,,根据你的命名赋值即可
来源: Laya_社区 发布时间: 20170623
....dataSource.src); cell.setLabel(cell.dataSource.txt); } } } import laya.ui.Image; import laya.ui.Label; import laya.ui.View; class Item extends View { public static var WID:int=150; public static var HEI:int=85; private var img:Image; private var label:Label; public function Item() { this.size(WID,H...
来源: Laya_社区 发布时间: 20170626
...载多张图片,并且通过事件按比例缩小 想通过for循环用image组件加载图像,然后根据图像的原始比例按照固定的宽度等比例缩小。可是image加载图像后怎么调度响应事件?在事件中用什么方法指向image本身。as3中是侦听器接受event...
来源: Laya_社区 发布时间: 20161023