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

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

31. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 85%]

...上 A:let texture = new Laya.Texture(sharedCanvas); backImage.graphics.drawTexture(texture)   B:backImage.texturetexture     1.7版本可以直接把共享画布赋值给组件纹理,2.0不行(A,B两种方法) 报如下错误:   value._addReference is not a function   请问...

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

32. 代码创建精灵监听不到事件? [ 85%]

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

33. FontClip问题 [ 84%]

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

34. laya.display.Graphics [ 83%]

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

35. laya.display.Graphics [ 83%]

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

36. 支不支持多个Texture 拼接成一张图片! [ 83%]

...自: a13121527420 支持,你可以获取多个texture,让sp.graphics.drawTexture(aa),sp.graphics.drawTexture(bb)这样连续去写即可! 2017-03-21 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 a13121527420 哇啦哇啦哇啦! ...

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

37. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 83%]

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

38. 请教各位前辈们,AS的一些API好像layabox没有,求解决方法或者思路,比如 Point 的interpolate方法 具体问题内详 [ 83%]

...  解答:beginBitmapFill方法已经没有了,可以使用sp.graphics.drawTexture实现类似功能 graphcis Lines 请参考:根据指定的路径数据绘制出图案以及展示Graphics提供的绘图API    第三个问题:关于创建 Graphics 类的 beginGradientFill() 和 lineGradien...

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

39. 2.0里Texture方法有改变吗? [ 83%]

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

40. laya.ui.AutoBitmap [ 83%]

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