diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index b80597663be63afaa0a50e022ae1620e7387b3bf..9c064f612859163f1680616351edfd4bca621423 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.