大约有 1,720 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0047 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...nction ZX():void{ var tex:Texture=new Texture(sp.drawToCanvas(sp.width,sp.height,0,0)) sp.graphics.clear() sp.graphics.destroy() tex.destroy() tex.disposeBitmap() tex.bitmap.relea...
来源: Laya_社区 发布时间: 20190120
...00x300 请问可以按照设备大小来显示,并且sprite的width和height都同时用设备大小显示么? 如果不行,该如何解决? 附件 : --> 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...
来源: Laya_社区 发布时间: 20180704
...s = the_sprite.drawToCanvas(Game_Parameter.game_width, Game_Parameter.game_height, 0, 0); //把精灵绘制到canvas上面let my_texture: Texture = new Texture(my_canvas); //使用htmlCanvas创建Texture let pixels = my_texture.getPixels(700, 8, 10, 1); //得到像素点 2018-01-07 2 0 分享 微...
来源: Laya_社区 发布时间: 20170405
...icon,超过宽度自动换行,直到这句话结束,所有每个item的height不都一样的 附件 : --> 2019-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要...
来源: Laya_社区 发布时间: 20190730
... var texWidth: number = texture.width; var texHeight: number = texture.height; //定义颜色值,取值范围0~1 浮点。 const red: number = 1; const greed: number = 1; co...
来源: Laya_社区 发布时间: 20170606
...e=new Sprite(); sp.width=100; sp.height=100; sp.graphics.drawRect(0,0,100,100,"#ff0000"); sp.on(Event.MOUSE_OVER,this,onMouse); sp.on(Event.MOUSE_OUT,this,onMouse); Laya.stag...
来源: Laya_社区 发布时间: 20170920
... cxt:CanvasRenderingContext2D = cav.getContext("2d"); cav.width = 256; cav.height = 256; cxt.fillStyle = 'rgb(' + '255' + ',' + '0' + ',0)'; cxt.font = "bold 50px 宋体"; cxt.textAlign = "center";//文本的对齐方式 cxt.textBaseline = "center";//文本相对于起点的位置 //设置文字,位...
来源: Laya_社区 发布时间: 20191211
...=>{ //创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A8, false, false, true); t2d.setImageData(res, true, false); //创建Texture var texture: Texture = new Texture(t2d); let sp2:Sprite = new Sprite(); //使用Sprite对象的绘制纹理方式 sp2.gr...
来源: Laya3.0_文档 发布时间: 20230303
...和透明没有关系,影响对象鼠标事件相应区域的是width,height,hitArea,具体请查看API 2020-05-15 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 avpvsdoom 相关问题 Layaair IDE的帧属性面板不见了 求...
来源: Laya_社区 发布时间: 20200514
...华为快游戏时, Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getTexture()会导致游戏卡死,无报错。try catch后错误信息也没有。 输出错误信息: TIPS:已经定位到了这句代码 附件 : --> 2023-11-16 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20231116