大约有 138 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
...:*, lineWidth:Number = 1):DrawCurvesCmd 绘制一系列曲线。 Graphics drawImage(texture:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0):DrawImageCmd 绘制单独图片 Graphics drawLine(fromX:Number, fromY:Number, toX:Number, toY:Number, lineColor:String, lineWidth:Nu...
来源: Laya2.0_api 发布时间: 20190513
..., lineWidth:Number = 1):DrawCurvesCmd 绘制一系列曲线。 Graphics drawImage(texture:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0):DrawImageCmd 绘制单独图片 Graphics drawLine(fromX:Number, fromY:Number, toX:Number, toY:Number, lineColor:String, lineWidth:...
来源: Laya2.0_api 发布时间: 20190513
...age.onload = function () { console.log(image.width, image.height); context.drawImage(image, 0, 0); }; 绘制到sharecanvas 一样,我直接创建scene和view 都没有效果 2018-11-22 0 0 分享 微博 QZONE 微信 186*****371 赞同来自: 现在解决了没,我也遇到同样的问题!求...
来源: Laya_社区 发布时间: 20181122
...tion(){})); var graphics: Laya.Graphics = new Laya.Graphics(); var dc:Laya.DrawImageCmd = graphics.drawImage(texTure, 0, 0, 16, 16); 生成之后要怎样添加到地图上?
来源: Laya_社区 发布时间: 20190214
...e中drawToTexture出的Texture画到canvas里面呢?我只找到了一个drawImage方法,参数类型并不支持Texture或者Texture2D。 我尝试了HTMLCanvas里面的各种方法,各种报错,想将其显示在场景中,也是不得其门而入。许多字面意思看上去可以的方...
来源: Laya_社区 发布时间: 20210627
... wond12 • 2018-01-30 20:52 我知道如果调用微信小游戏原生的drawImage接口是可以做到的,只是不知道和laya怎么结合
来源: Laya_社区 发布时间: 20180130
...ircle.x, circle.y, circle.r, 0, Math.PI * 2, false); contex.clip(); contex.drawImage(img, 0, 0, oldImgWidth, oldImgHeight, 0, 0, width, height); contex.restore(); return canvas.toDataURL('image/png'); } 2018-11-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...
来源: Laya_社区 发布时间: 20181125
... tex.once(Event.READY, this, this.drawImage, [tex, x, y, width, height]); } 导致 tex 找不到 getIsReady 方法报错 报错堆栈 TypeError: tex.getIsReady is not a function at Graphics.loadImage (file:///D:/z...
来源: Laya_社区 发布时间: 20200417
...let Texture = Laya.Texture.create(t, 0, 0, t.width, t.height); t2.graphics.drawImage(Texture, 0, 0, 56, 56); } 2025-09-23 0 0 分享 微博 QZONE 微信 LayaAir大为 赞同来自: 肖亮亮 您好,我们已经复现这个问题,感谢您的反馈 2025-09-01 1 0 分享 微博 QZONE 微信 为什...
来源: Laya_社区 发布时间: 20250827
...其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,则会自动加载图片,然后显示 Sprite transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果...
来源: Laya2.0_api 发布时间: 20190513