From c87d9532fac7917d75924cbd09d6b9572a2c83ac Mon Sep 17 00:00:00 2001 From: yaozhupeng Date: Mon, 23 Jun 2025 16:57:34 +0800 Subject: [PATCH] change the image interfaces description Signed-off-by: yaozhupeng --- api/@ohos.multimedia.image.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index b80597663b..9c064f6128 100644 --- a/api/@ohos.multimedia.image.d.ts +++ b/api/@ohos.multimedia.image.d.ts @@ -4772,8 +4772,8 @@ declare namespace image { * consider the impact of stride. * * @param { ArrayBuffer } colors The image color buffer. - * @param { InitializationOptions } options Initialization options for pixelmap. - * @param { AllocatorType } allocatorType Indicate which memory type will be used by the returned PixelMap. + * @param { InitializationOptions } param Initialization options for pixelmap. + * @param { AllocatorType } [allocatorType] Indicate which memory type will be used by the returned PixelMap. * @returns { Promise } A Promise instance used to return the PixelMap object. * @throws { BusinessError } 7600201 - Unsupported operation. * @throws { BusinessError } 7600301 - Memory alloc failed. @@ -4781,7 +4781,7 @@ declare namespace image { * @syscap SystemCapability.Multimedia.Image.Core * @since 20 */ - function createPixelMapUsingAllocator(colors: ArrayBuffer, options: InitializationOptions, + function createPixelMapUsingAllocator(colors: ArrayBuffer, param: InitializationOptions, allocatorType?: AllocatorType): Promise; /** @@ -4791,8 +4791,8 @@ declare namespace image { * consider the impact of stride. * * @param { ArrayBuffer } colors The image color buffer. - * @param { InitializationOptions } options Initialization options for pixelmap. - * @param { AllocatorType } allocatorType Indicate which memory type will be used by the returned PixelMap. + * @param { InitializationOptions } param Initialization options for pixelmap. + * @param { AllocatorType } [allocatorType] Indicate which memory type will be used by the returned PixelMap. * @returns { PixelMap } Returns the instance if the operation is successful;Otherwise, return undefined. * @throws { BusinessError } 7600201 - Unsupported operation. * @throws { BusinessError } 7600301 - Memory alloc failed. @@ -4800,7 +4800,7 @@ declare namespace image { * @syscap SystemCapability.Multimedia.Image.Core * @since 20 */ - function createPixelMapUsingAllocatorSync(colors: ArrayBuffer, options: InitializationOptions, + function createPixelMapUsingAllocatorSync(colors: ArrayBuffer, param: InitializationOptions, allocatorType?: AllocatorType): PixelMap; /** @@ -4822,15 +4822,15 @@ function createPixelMapSync(options: InitializationOptions): PixelMap; * platform capability, etc. When processing the PixelMap returned by this interface, please always * consider the impact of stride. * - * @param { InitializationOptions } options Initialization options for pixelmap. - * @param { AllocatorType } allocatorType Indicate which memory type will be used by the returned PixelMap. + * @param { InitializationOptions } param Initialization options for pixelmap. + * @param { AllocatorType } [allocatorType] Indicate which memory type will be used by the returned PixelMap. * @returns { PixelMap } Returns the instance if the operation is successful;Otherwise, return undefined. * @throws { BusinessError } 7600201 - Unsupported operation. * @throws { BusinessError } 7600301 - Memory alloc failed. * @syscap SystemCapability.Multimedia.Image.Core * @since 20 */ - function createPixelMapUsingAllocatorSync(options: InitializationOptions, allocatorType?: AllocatorType): PixelMap; + function createPixelMapUsingAllocatorSync(param: InitializationOptions, allocatorType?: AllocatorType): PixelMap; /** * Transforms pixelmap from unpremultiplied alpha format to premultiplied alpha format. -- Gitee