大约有 368 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0049 秒)
Laya_社区(167) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(12) Laya2.0_示例(6) Laya3.0_文档(3) Laya_示例(2)
...上 A:let texture = new Laya.Texture(sharedCanvas); backImage.graphics.drawTexture(texture) B:backImage.texture = texture 1.7版本可以直接把共享画布赋值给组件纹理,2.0不行(A,B两种方法) 报如下错误: value._addReference is not a function 请问...
来源: Laya_社区 发布时间: 20181001
... new Laya.Sprite(); var texture = Laya.loader.getRes(boxstr); box.graphics.drawTexture(texture); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]); var _proto = StorageUILayer.prototype; _proto.onclick = function(params){ console.log...
来源: Laya_社区 发布时间: 20171113
...inue ; texture=this.sources[index]; if (isHorizontal)this.graphics.drawTexture(texture,dX+i *(texture.sourceWidth+this.spaceX),0,texture.sourceWidth,texture.sourceHeight); else this.graphics.drawTexture(texture,0+dX,i *(texture.sourceHeight+this.spaceY),texture.sourceWidth,texture.source...
来源: Laya_社区 发布时间: 20180228
...lineColor:* = null, lineWidth:Number = 1):void 绘制矩形。 Graphics drawTexture(tex:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, m:Matrix = null, alpha:Number = 1):Array 绘制纹理。 Graphics drawTextures(tex:Texture, pos:Array):void 批量绘制同样纹理...
来源: laya_api 发布时间: 20170929
...or:* = null, lineWidth:Number = 1):DrawRectCmd 绘制矩形。 Graphics drawTexture(texture:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, matrix:Matrix = null, alpha:Number = 1, color:String = null, blendMode:String = null):DrawTextureCmd 绘制纹理,相比drawImage...
来源: Laya2.0_api 发布时间: 20190513
...自: a13121527420 支持,你可以获取多个texture,让sp.graphics.drawTexture(aa),sp.graphics.drawTexture(bb)这样连续去写即可! 2017-03-21 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 a13121527420 哇啦哇啦哇啦! ...
来源: Laya_社区 发布时间: 20170320
drawTexture时,Matrix对象,a=-1,无法实现水平翻转 g.drawTexture(texture,100, 100, texture.width, texture.height, new laya.maths.Matrix(-1)); 为何无法实现水平翻转? 绘制的图片直接看不见了,如果不设置matrix.a = -1就不会出现。 2017-02-21 添加评论 免...
来源: Laya_社区 发布时间: 20170221
... 解答:beginBitmapFill方法已经没有了,可以使用sp.graphics.drawTexture实现类似功能 graphcis Lines 请参考:根据指定的路径数据绘制出图案以及展示Graphics提供的绘图API 第三个问题:关于创建 Graphics 类的 beginGradientFill() 和 lineGradien...
来源: Laya_社区 发布时间: 20160627
...00, 0, 0); var _texture:Texture = new Texture(htmlCanvas); txt_ct.graphics.drawTexture(_texture, -2, -2, 575, 1500); p6_work.addChild(txt_ct);为什么1.0这样写没问题,2.0就会报错?RenderTexture: unkonw depth format. 2018-10-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20181029
...olor:* = null, lineWidth:Number = 1):DrawRectCmd 绘制矩形。 Graphics drawTexture(texture:Texture, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, matrix:Matrix = null, alpha:Number = 1, color:String = null, blendMode:String = null):DrawTextureCmd 绘制纹理,相比drawImage...
来源: Laya2.0_api 发布时间: 20190513