• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0072 秒)

631. 2.3微信截图分享问题 [ 72%]

...做分享。 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

632. Image缓存bitmap后怎样获取缓存后的像素数据? [ 72%]

...stination-out"的Sprit容器 3、擦除后使用image.source.getPixels(x,y,width,height)获取的数据和未擦除前相同 4、这样就实现了擦除的效果,那这样去获取擦除后的纹理像素点呢? 2017-04-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

来源: Laya_社区 发布时间: 20170407

633. 如何根据内容计算 Label的高度 [ 72%]

... cuixueying 赞同来自: 问题1、   label的宽高可以直接通过.width和.height获取,尺寸会跟随字符的多少变化而变化,是自动调整的,无需开发者去计算 问题2、   htmlDivElement的文本宽高,默认的宽高为200,,200,如果已经设置过htmlDivElem...

来源: Laya_社区 发布时间: 20160823

634. 加载TiledMap 不显示 [ 72%]

...edMap.createMap("res/tiledMap/t2.json", new Rectangle(00, Laya.stage.width, Laya.stage.height), Handler.create(this, this.mapLoaded), null, new Point(1600, 800));     }      private onStageClick(): void {         var p: Point = new Point(00);         ...

来源: Laya_社区 发布时间: 20201230

635. 相对值和固定值并存,理解不来,脑壳疼 [ 72%]

...定值,但固定值和相对值是不等的   view如果不设置固定的width和height,相对宽高反而不起作用了..   属性设置相对宽高后, width和height不应该是auot吗? 相对值和固定值并存,理解不来,脑壳疼...   附件 : --> 2020-03-22 添加评论 免费帖 --...

来源: Laya_社区 发布时间: 20200322

636. laya.physics.PhysicsDebugDraw_API3.0 [ 72%]

...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

637. laya.ui.ScaleBox [ 72%]

...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...

来源: Laya2.0_api 发布时间: 20190513

638. laya.ui.Panel [ 72%]

...d-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Component filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴...

来源: laya_api 发布时间: 20170929

639. laya的drawToTexture太坑 [ 72%]

...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

640. 关于laya生成的canvas定位问题导致内部事件不正确 [ 72%]

...="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