大约有 3 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0017 秒)
graphics的fillTexture 圆角图边缘有多出线条 var texture = LoadingManager.instance.getRes("res/progress.png"); var graphics=new Laya.Graphics(); graphics.fillTexture(texture,0,0,texture.width,texture.height,"repeat"); 如果用drawTexture就没问题,因为平铺需求 需要用到fillTe...
来源: Laya_社区 发布时间: 20180904
关于graphics.fillTexture,该api只能填充矩形的,请问有其他方法能填充圆形的吗? fillTexture(tex:Texture, x:Number, y:Number, width:Number = 0, height:Number = 0, type:String = repeat, offset:Point = null):void 用该方法实现图片填充效果,但是目前需要用圆...
来源: Laya_社区 发布时间: 20201105
...; charSp = Laya.Pool.getItemByClass("sprite",Laya.Sprite); charSp.graphics.fillTexture(this._imageData,charData.x,charData.y,charData.w,charData.h,"no-repeat",new Laya.Point(-charData.x,-charData.y)); charSp.size(charData.w,charData.h) charSp.scrollRect = new Laya.Rectangle(charData.x,charData.y,cha...
来源: Laya_社区 发布时间: 20161014