文件目录创建

This commit is contained in:
tsm 2024-04-26 17:44:05 +08:00
parent 97a5ca1ec2
commit 1bb95e3b13
5 changed files with 15 additions and 2 deletions

View File

@ -0,0 +1,2 @@
/*
* asdfasdfasdfasdfasdf*/

View File

@ -0,0 +1,2 @@
/*
* dsasdafasdfasdf*/

View File

@ -0,0 +1,2 @@
/*
* asdfasdfasdfasdfasdf*/

View File

@ -188,7 +188,7 @@ export class RequestManager {
let success = (value: PixelMap) => {
onComplete(value);
}
this.mParseImageUtil.parseImage(arrayBuffer, success, onError)
this.mParseImageUtil.parseImage(arrayBuffer, success, onError,request)
}
}
}

View File

@ -20,7 +20,14 @@ import taskpool from '@ohos.taskpool';
import { LogUtil } from './LogUtil';
export class ParseImageUtil implements IParseImage<PixelMap> {
parseImage(imageinfo: ArrayBuffer, onCompleteFunction: (value: PixelMap) => void | PromiseLike<PixelMap>, onErrorFunction: (reason?: BusinessError | string) => void) {
parseImage(
imageinfo: ArrayBuffer,
onCompleteFunction: (value: PixelMap) => void | PromiseLike<PixelMap>,
onErrorFunction: (reason?: BusinessError | string) => void,
request?: RequestOption
) {
this.parseImageThumbnail(1, imageinfo, onCompleteFunction, onErrorFunction)
}