From 8cf7521d2c885fffb2cbff5a3976cbb27fe0cde8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=91=E5=B1=91=E5=B1=91?= Date: Wed, 25 Jun 2025 14:21:50 +0800 Subject: [PATCH] Sync interface code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 屑屑屑 --- 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