大约有 5 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0024 秒)
... 获取宽度。 BaseTexturePublic Methods MethodDefined By Texture2D(canRead:Boolean = false, reapeat:Boolean = true, format:int, mipmap:Boolean = true) 创建一个 Texture2D 实例。 Texture2D getPixels():Uint8Array 返回图片像素。 Texture2D load(url:String):Texture2D[static] ...
来源: laya_api 发布时间: 20170929
...exture2D(width:int = 0, height:int = 0, format:int, mipmap:Boolean = true, canRead:Boolean = false) 创建一个 Texture2D 实例。 Texture2D _getSource():*[override] 获取纹理资源。 BaseTexture _parse(data:*, propertyParams:Object = null, constructParams:Array = null):Texture2D[static] T...
来源: Laya2.0_api 发布时间: 20190513
...我需要读取PNG图片像素点 所以加载使用了上图的方式(canRead:true),但是图片加载出来失真了,是我参数没用对么?或者有没有其他的方式读取像素?原图已上传 附件 : --> 2025-08-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20250819
...width?: number, height?: number, format?: TextureFormat, mipmap?: boolean, canRead?: boolean, sRGB?: boolean, } TexturePropertyParams { wrapModeU?: number, wrapModeV?: number, filterMode?: FilterMode, anisoLevel?: number, premultiplyAlpha?: boolean, hdrEncodeFormat?: HDREncodeFormat, } Copyright ©L...
来源: Laya3.0_文档 发布时间: 20251010
...2D(width: number, height: number, format: TextureFormat, mipmap?: boolean, canRead: boolean, sRGB?: boolean, premultiplyAlpha?: boolean): Texture2D Overrides BaseTexture.constructor Defined in laya/resource/Texture2D.ts:247 实例化2D纹理 Parameters width: number height: number format: TextureFor...
来源: Laya3.0_api 发布时间: 20231115