大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1124) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(39)
... $pic.height = 246; $pic.scaleX = $pic.scaleY; trace("$pic.width:" + $pic.width); })); 这样处理后,图片高度还是100%,并不是246啊 2017-05-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20170503
... tmapsp.zOrder=1; this.tMap.changeViewPort(-((Laya.stage.width-this.tMap.width)/2),-((Laya.stage.height-this.tMap.height)/2),this.tMap.width,this.tMap.height); this.addChild(this.tMap.mapSprite()); 请问这是什么意思啊 2020-04-20 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20200420
...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW blackTexture cpuMemory gpuMemory grayTexture whiteTexture Methods _addReference _clearReference _getSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuCompre...
来源: Laya3.0_api 发布时间: 20231102
...skArea); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000"); // 绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); guideContainer.addChild(interactionArea); // 设置叠加模式 interacti...
来源: Laya2.0_示例 发布时间: 20240930
...Graphics(); g.drawRect(this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+20,"#FF0000"); let hitA:Laya.HitArea = new Laya.HitArea(); hitA.hit = g; this.closeBtn.hitArea = hitA; // 写法二 this.closeBtn.graphics.drawRect(this.closeBtn.x-10,this.closeBtn.y-10,this.clos...
来源: Laya_社区 发布时间: 20170920
...orld(input:Laya.Vector2):Laya.Vector2 { let ratioX = (input.x / Laya.stage.width); let ratioY = (input.y / Laya.stage.height); let clientWidth = Laya.stage.clientScaleX * Laya.stage.width let clientHeight = Laya.stage.clientScaleY * Laya.stage.height let singleX = (Laya.Browser.width - clientWidth)/...
来源: Laya_社区 发布时间: 20180530
...fname) : im=Image.open( fname) pngs.append( im) maxWith = max( maxWith, im.width) maxHeight = max( maxHeight, im.height) print im.width, im.height length=len(pngs) maxHeight += 2 if length > 0: finalHeight = maxHeight*length outIm = Image.new('RGBA',(maxWith, finalHeight), (0,0,0,0)) index=0 for ...
来源: Laya_社区 发布时间: 20180721
...n); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (img.$_GID=Utils.getGID()); var key=img.$_GID+"-"+this._stateNum; var clips=Wea...
来源: Laya_社区 发布时间: 20191122
...2 个回复 kylin 赞同来自: 果粒儿 怀疑是传参的时候canvas的width或height没设置,或者canvas的宽高为0 可以在这个方向上排查一下 或者提供一个简单可复现的demo,我们看一下 2020-07-31 1 1 分享 微博 QZONE 微信 明森 赞同来自: 原因是, ...
来源: Laya_社区 发布时间: 20200731
...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW blackTexture cpuMemory errorTexture gpuMemory grayTexture whiteTexture Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuComp...
来源: Laya3.0_api 发布时间: 20231115