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

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

161. 求问sprite放大后,graphics绘制的图像位置偏移 [ 85%]

...n_img1); sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); sprite.size(texture.width, texture.height); let x: number = 300; let y: number = 100; let scaleRatio: number = 1.3; sprite.pos(x, y); // sprite.graphics.drawCircle(texture.width/2, texture.height/2, 10, "#fff333"); /...

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

162. UI模式下Dialog标签嵌套RadioGroup会导致编辑器卡死 [ 85%]

...oGroup会导致编辑器卡死 <Dialog width="725" sceneColor="#000000" height="500" editorInfo="compId=1"> <Image y="46" x="0" width="687" skin="setting/gd2_n.png" sizeGrid="30,30,30,30" height="402" editorInfo="compId=4"> <Image y="0" x="241.5" skin="setting/log18-5_n.png" editorInf...

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

163. Sprite.loadImage();问题 [ 85%]

...        this.width = texture.width;                 this.height = texture.height;                 this.pos((Laya.stage.width - this.width)/2, (Laya.stage.height - this.height)/2);             }         } 2017-10-20 0 0 分享 微博 QZONE 微信 为什么...

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

164. drawToCanvas绘制显示不全 [ 85%]

....visibility = 'hidden';         style.zIndex = 9999;         style.height = screen.height + 'px';         style.width = Math.floor(screen.height / Laya.stage.height * Laya.stage.width) + 'px';         document.body.appendChild(this.nativeImg)     }     onEnable() {         La...

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

165. DOM元素-视频 [ 85%]

...ze(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoEle...

来源: Laya2.0_示例 发布时间: 20251209

166. 微信小游戏截屏分享 [ 85%]

...坚果 赞同来自: 183*****291 、₩ var htmlC = sp.drawToCanvas(width, height, 0, 0); var canvas = htmlC.getCanvas(); canvas.toTempFilePath({ x: 0, y: 0, width: width, height: height, destWidth: width, destHeight: height, success: function (res) { wx.shareAppMessage({ imageUrl: res.tempFilePath,...

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

167. laya.d3.resource.MulSampleRenderTexture_API3.0 [ 85%]

...t gammaCorrection gammaSpace generateDepthTexture generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount multiSamples obsolute referenceCount samples width wrapModeU wrapModeV wrapModeW bindCanvasRender cpuMemory currentActive gpuMemory Methods _addReference _clearReference _cre...

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

168. laya.ui.AutoBitmap [ 85%]

...w Inherited Public Properties PropertyDefined By cmds : ArrayGraphics  height : Number 表示显示对象的高度,以像素为单位。 AutoBitmap  sizeGrid : Array 当前实例的有效缩放网格数据。 如果设置为null,则在应用任何缩放转换时,将正常缩放整个显示...

来源: laya_api 发布时间: 20170929

169. laya.resource.Texture_API3.0 [ 85%]

...d _sizeGrid _stateNum destroyedImmediately lock name offsetX offsetY sourceHeight sourceWidth url uuid DEBUG Accessors bitmap cpuMemory destroyed gpuMemory height id obsolute referenceCount uv valid width cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCr...

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

170. laya.display.cmd.DrawImageCmd_API3.0 [ 85%]

...ss DrawImageCmd 绘制图片 Hierarchy DrawImageCmd Index Properties color height texture width x y ID Methods recover Properties color color: number = 4294967295 Defined in laya/display/cmd/DrawImageCmd.ts:34 (可选)绘图颜色 height height: number Defined in laya/display/cmd/DrawImageCmd.ts...

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