大约有 185 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0031 秒)
Laya_社区(74) Laya3.0_api(41) Laya2.0_api(29) laya_api(23) Laya2.0_文档(11) Laya3.0_文档(5) Laya2.0_示例(1) Laya_示例(1)
...需重写,记得赋值到window */ export class ImageData { public data: Uint8ClampedArray; public width: number; public height: number; public constructor(width: number, height: number) { this.width = width; this.height = height; this.data = new Uint8ClampedArray(width * height * 4); } } window.I...
来源: Laya_社区 发布时间: 20181122
...D if (tex) { let u8 = tex.getData(0, 0, tex.width, tex.height) let u = new Uint8Array(u8.length) let len = u8.length / 4 let i = 0 for (let x = len; x >= 0; x--) { for (let y = 0; y < 4; y++) { u[i * 4 + y] = u8[x * 4 + y] } i++ } u8 = u u = new Uint8Array(u8.length) len = u8.length / s.height...
来源: Laya_社区 发布时间: 20210911
...height *4); } if (this._canRead){ if (Render.isConchApp){ this._pixels=new Uint8Array(source._nativeObj.getImageData(0,0,width,height)); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawImage(source,0,0,width,height); this._pixels=new Uint8Array(Browser.context....
来源: Laya_社区 发布时间: 20190809
...ride] IndexBuffer3D destroy():void[override] IndexBuffer3D getData():Uint16Array 获取索引数据。 IndexBuffer3D setData(data:*, bufferOffset:int = 0, dataStartIndex:int = 0, dataCount:Number = 4294967295):void 设置数据。 IndexBuffer3DPublic Constants ConstantDefined By INDEXTY...
来源: Laya2.0_api 发布时间: 20190513
...3D.create()代替 实例。 IndexBuffer3D _bind():voidBuffer getData():Uint16Array 获取索引数据。 IndexBuffer3D setData(data:*, bufferOffset:int = 0, dataStartIndex:int = 0, dataCount:Number = 4294967295):void 设置数据。 IndexBuffer3DProtected Methods Show Inherited Protected Meth...
来源: laya_api 发布时间: 20170929
...nFilter _currentNumberIndices : intTerrainFilter _indexArrayBuffer : Uint16ArrayTerrainFilter _indexBuffer : IndexBuffer3DTerrainFilter _maxNumberIndices : intTerrainFilter _numberTriangle : intTerrainFilter _numberVertices : intTerrainFilter _vertexBuffer : VertexBuffer3DTerrai...
来源: Laya2.0_api 发布时间: 20190513
...为角度。 Utils toHexColor(color:Number):String[static] 将传入的 uint 类型颜色值转换为字符串型颜色值。 Utils toRadian(angle:Number):Number[static] 角度转弧度。 UtilsProperty DetailparseXMLFromStringpropertypublic static var parseXMLFromString:Function 将字符串...
来源: laya_api 发布时间: 20170929
... throw Error(errMsg); // Encode a message to an Uint8Array (browser) or Buffer (node) var buffer = AwesomeMessage.encode(message).finish(); // ... do something with buffer // Or, encode a plain object 也可...
来源: Laya_社区 发布时间: 20170216
...为角度。 Utils toHexColor(color:Number):String[static] 将传入的 uint 类型颜色值转换为字符串型颜色值。 Utils toRadian(angle:Number):Number[static] 角度转弧度。 UtilsProperty DetailparseXMLFromStringpropertypublic static var parseXMLFromString:Function 将字符串...
来源: Laya2.0_api 发布时间: 20190513
...下什么原因,十分感谢。RangeError: Source is too large at Uint8Array.set (native) at Pv (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/LayaTest2_5/bin/libs/laya.physics3D.js:304:397) at Object.window.Physics3D (file:///D:/UserSoft/layaAir2.5/workSpace/LayaTest2_5/L...
来源: Laya_社区 发布时间: 20181228