feat:Image add pixel API,pass pixels directly to Image

This commit is contained in:
pengfei.zhou
2021-11-19 14:30:24 +08:00
committed by osborn
parent 62cb618923
commit 190eb4afd7
16 changed files with 378 additions and 161 deletions

View File

@@ -85,8 +85,17 @@ export class BundleResource extends iOSResource {
}
export class ArrayBufferResource extends Resource {
data: ArrayBuffer
constructor(data: ArrayBuffer) {
super("arrayBuffer", "")
this.data = data
}
toModel() {
return {
data: this.data,
resId: this.resId,
type: this.type,
identifier: this.identifier,
}
}
}