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

大约有 10 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0039 秒)

1. graphics的fillTexture 圆角图边缘有多出线条 [ 100%]

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

2. 关于graphics.fillTexture,该api只能填充矩形的,请问有其他方法能填充圆形的吗? [ 97%]

关于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

3. laya.ani.GraphicsAni_API3.0 [ 64%]

...ly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate create recycle Constructors constructor new GraphicsAni(): GraphicsAni Inherited from Graphics.constructor Defined in laya/dis...

来源: Laya3.0_api 发布时间: 20231115

4. laya.ui.AutoBitmap_API3.0 [ 60%]

...ly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale setState strokeText transform translate Constructors constructor new AutoBitmap(): AutoBitmap Inherited from Graphics.constructor Defined in laya/display/Gra...

来源: Laya3.0_api 发布时间: 20231115

5. laya.display.Graphics_API3.0 [ 58%]

...ly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate Constructors constructor new Graphics(): Graphics Defined in laya/display/Graphics.ts:54 Returns Graphics Accessors cmds get c...

来源: Laya3.0_api 发布时间: 20231115

6. laya.display.Graphics [ 56%]

...gn:String, underLine:int = 0):void 在画布上绘制文本。 Graphics  fillTexture(tex:Texture, x:Number, y:Number, width:Number = 0, height:Number = 0, type:String = repeat, offset:Point = null):void 用texture填充。 Graphics  getBounds(realSize:Boolean = false):Rectangle 获取位置及...

来源: laya_api 发布时间: 20170929

7. laya.display.Graphics [ 43%]

...ing, textAlign:String):FillTextCmd 在画布上绘制文本。 Graphics  fillTexture(texture:Texture, x:Number, y:Number, width:Number = 0, height:Number = 0, type:String = repeat, offset:Point = null):FillTextureCmd 用texture填充。 Graphics  getBounds(realSize:Boolean = false):Rectangle 获...

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

8. laya.ui.AutoBitmap [ 42%]

...lign:String, underLine:int = 0):void 在画布上绘制文本。 Graphics fillTexture(tex:Texture, x:Number, y:Number, width:Number = 0, height:Number = 0, type:String = repeat, offset:Point = null):void 用texture填充。 Graphics getBounds(realSize:Boolean = false):Rectangle 获取位置及宽...

来源: laya_api 发布时间: 20170929

9. laya.ui.AutoBitmap [ 41%]

...tring, textAlign:String):FillTextCmd 在画布上绘制文本。 Graphics fillTexture(texture:Texture, x:Number, y:Number, width:Number = 0, height:Number = 0, type:String = repeat, offset:Point = null):FillTextureCmd 用texture填充。 Graphics getBounds(realSize:Boolean = false):Rectangle 获...

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

10. 分享个用美术资源做位图文本的方法。。。 [ 41%]

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