大约有 908 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
Laya_社区(631) Laya3.0_api(68) Laya2.0_api(57) laya_api(53) Laya2.0_文档(50) Laya3.0_文档(28) Laya2.0_示例(11) Laya_示例(10)
...ge.screenMode = "horizontal"; var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg....
来源: Laya_社区 发布时间: 20180808
...Context.bindTexture(gl, WebGLContext.TEXTURE_2D, _source); //由于HTML5中Image不能直接获取像素素数,只能先画到Canvas上再取出像素数据,再分别texSubImage2D四个边缘(包含一次行列转换),性能可能低于直接texSubImage2D整张image, //实测76*59的image...
来源: Laya_社区 发布时间: 20180417
...private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMap():Laya.Image { if(this.mapImg==null) { this.mapImg=new Laya.Image(); } return this.mapImg; } public LoadMapResource() { this.skins=[ "res/img/map/1.jpg", "res/img/map/2.jpg", "re...
来源: Laya_社区 发布时间: 20171124
...应该能让切图轻松一些把 mport os import math from PIL import Image # if png pngs=[] maxWith = 0 maxHeight = 0 for idx in range(1,4): fname = os.path.join( os.path.curdir, "btn_{0}.png".format(idx)) if os.path.exists( fname) : im=Image.open( fname) pngs.append( im) maxWith = max( maxW...
来源: Laya_社区 发布时间: 20180721
...ar Stage = Laya.Stage; var Button = Laya.Button; var Clip = Laya.Clip; var Image = Laya.Image; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var buttonSkin = "res/ui/button-7.png"; var clipSkin = "res/ui/num0-9.png"; var bgSkin = "res/ui/coutDown.png"; var counter, currFrame, controller; (func...
来源: Laya2.0_文档 发布时间: 20210715
...void { Laya.loader.load( //先加载本场景要用的 ["resources/UI/image.png", "resources/UI/progress.png", "resources/UI/progress$bar.png","resources/UI/images/dsgame/banner2.jpg"] ).then(() => { let resArr: Array<any> = [ { url: "resources/U...
来源: Laya_社区 发布时间: 20230713
...on动画销毁之后依然占用内存 如何加载图集、销毁图集(images.atlas,images.json,images.png),如何获取图集里面的小图 问题状态 最新活动: 2020-05-27 15:24 浏览: 1342 关注: 3 人
来源: Laya_社区 发布时间: 20180704
...if (base64OfQrCode.length>0) { let img:Laya.Image = new Laya.Image(); img.skin = "data:image/png;base64,"+base64OfQrCode; img.pos(100, 300); Laya.stage.addChild(img); } } /...
来源: Laya_社区 发布时间: 20200729
...下TextInput这个类的API。 Laya.ui.textInput中所有的API参数:  这里我们设置文本的单行输入和多行输入,单行输入只能在一行内输入,多行可以通过回车在上一行未满的...
来源: Laya2.0_文档 发布时间: 20210715
...显示conchShader找不到和Status bar could not find cached time string image. 然后直接黑屏!!!!!! layabox[4357:2764240] ==JSERROR: exception info: [ReferenceError: Can't find variable: ConchShader] at line 21042 layabox[4357:2763988] Status bar could not find cached time string i...
来源: Laya_社区 发布时间: 20180428