大约有 187 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0060 秒)
...言来创建项目。代码如下: ```java package { import laya.display.Sprite; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' +...
来源: Laya2.0_文档 发布时间: 20210715
...+ '</div>' + '</foreignObject>' + '</svg>'; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadImage这个方法中的参数...
来源: Laya3.0_文档 发布时间: 20241014
... = false Inherited from AnimationBase._ownGraphics Defined in laya/display/Sprite.ts:245 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:631 _skinBaseUrl _skinBaseUrl: string Inherited from AnimationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点...
来源: Laya3.0_api 发布时间: 20231102
...vElement=new HTMLDivElement(); div.innerHTML = "adivspanspan2p"; Hierarchy Sprite HTMLDivElement HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha ble...
来源: Laya3.0_api 发布时间: 20231102
... https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video Hierarchy Sprite Video Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name videoElement CAMERA MP4 OGG SUPPORT_MAYBY SUPPORT_NO SUPPORT_PROBABLY WEBM drawtocanv...
来源: Laya3.0_api 发布时间: 20231102
...s/background.png'); //创建一个bg显示对象 var bg = new laya.display.Sprite(); //将上面的texture纹理绘制到bg图像里面 bg.graphics.drawTexture(texture, 0, 0); //将bg添加到舞台 Laya.stage.addChild(bg); 我们再次刷新页面看看有什么效果 嗯 看来图片出来了...
来源: Laya_社区 发布时间: 20160722
... = false Inherited from AnimationBase._ownGraphics Defined in laya/display/Sprite.ts:245 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:631 _skinBaseUrl _skinBaseUrl: string Inherited from AnimationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点...
来源: Laya3.0_api 发布时间: 20231102