大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0072 秒)
Laya_社区(1124) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(39)
...做分享。 var tempFilePath = canvas.toTempFilePathSync( { x: 0, y: 0, width: 100, height: 100, destWidth: 100, destHeight: 100, fileType: 'jpg', quality: 1.0 }); var canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getCanvas(); 这是第二种写法。翻了几次...
来源: Laya_社区 发布时间: 20191010
...stination-out"的Sprit容器 3、擦除后使用image.source.getPixels(x,y,width,height)获取的数据和未擦除前相同 4、这样就实现了擦除的效果,那这样去获取擦除后的纹理像素点呢? 2017-04-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20170407
... cuixueying 赞同来自: 问题1、 label的宽高可以直接通过.width和.height获取,尺寸会跟随字符的多少变化而变化,是自动调整的,无需开发者去计算 问题2、 htmlDivElement的文本宽高,默认的宽高为200,,200,如果已经设置过htmlDivElem...
来源: Laya_社区 发布时间: 20160823
...edMap.createMap("res/tiledMap/t2.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), null, new Point(1600, 800)); } private onStageClick(): void { var p: Point = new Point(0, 0); ...
来源: Laya_社区 发布时间: 20201230
...定值,但固定值和相对值是不等的 view如果不设置固定的width和height,相对宽高反而不起作用了.. 属性设置相对宽高后, width和height不应该是auot吗? 相对值和固定值并存,理解不来,脑壳疼... 附件 : --> 2020-03-22 添加评论 免费帖 --...
来源: Laya_社区 发布时间: 20200322
...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY g...
来源: Laya3.0_api 发布时间: 20231115
...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...
来源: Laya2.0_api 发布时间: 20190513
...d-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...
来源: laya_api 发布时间: 20170929
...ounds = view.getSelfBounds(); let texture = view.drawToTexture(bounds.width, bounds.height, -bounds.x + view.x, -bounds.y + view.y) as laya.resource.Texture; shadow.graphics.drawTexture(texture, bounds.x, bounds.y, bounds.width, bounds.height, null, 0.3); shadow.pos(view.x, view.y);...
来源: Laya_社区 发布时间: 20200330
...="UTF-8"> <title></title> <meta name="viewport" content="width=750, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <style> *{margin: 0; padding: 0;} body{background: #0099FF;} body,html{height: 100%;} .layaDiv{width: 300px;height: 300px;margin:...
来源: Laya_社区 发布时间: 20170427