From 83ff601d9eaa7e58bdfcd426d82e3aca93b6fadf Mon Sep 17 00:00:00 2001 From: zhaona45 Date: Fri, 13 Jun 2025 15:07:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Image=20ArkTS1.2=E9=80=82=E9=85=8Dnumber->i?= =?UTF-8?q?nt=E6=96=B0=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaona45 Change-Id: I060a66114aa03cb8c5d6ea3fe8b5a6c6d37f85cb --- api/@ohos.multimedia.image.d.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index 8d12a3fcd6..ba847c71b3 100644 --- a/api/@ohos.multimedia.image.d.ts +++ b/api/@ohos.multimedia.image.d.ts @@ -22,9 +22,6 @@ import { AsyncCallback } from './@ohos.base'; import type colorSpaceManager from './@ohos.graphics.colorSpaceManager'; import type resourceManager from './@ohos.resourceManager'; import type rpc from './@ohos.rpc'; -/*** if arkts 1.1 */ -import { int, double, float } from './@ohos.base'; -/*** endif */ /** * @namespace image @@ -9714,7 +9711,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } callback Callback used to return the operation result. * @syscap SystemCapability.Multimedia.Image.ImageCreator - * @since 9 + * @since arkts {'1.1':'9','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'imageRelease', callback: AsyncCallback): void; -- Gitee From 15c924502118b82229481bd000a237d53b0decc8 Mon Sep 17 00:00:00 2001 From: zhaona45 Date: Tue, 17 Jun 2025 11:27:16 +0800 Subject: [PATCH 2/2] 1. modify queueImage Signed-off-by: zhaona45 Change-Id: Ie61541857e6c54a10fbb7885deaae945fe48b11b --- api/@ohos.multimedia.image.d.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index ba847c71b3..b1233cba18 100644 --- a/api/@ohos.multimedia.image.d.ts +++ b/api/@ohos.multimedia.image.d.ts @@ -22,6 +22,9 @@ import { AsyncCallback } from './@ohos.base'; import type colorSpaceManager from './@ohos.graphics.colorSpaceManager'; import type resourceManager from './@ohos.resourceManager'; import type rpc from './@ohos.rpc'; +/*** if arkts 1.1 */ +import { int, double, float } from './@ohos.base'; +/*** endif */ /** * @namespace image @@ -9688,22 +9691,22 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise } callback Callback to return the operation result. * @syscap SystemCapability.Multimedia.Image.ImageCreator * @since 9 */ - queueImage(interface: Image, callback: AsyncCallback): void; + queueImage(image: Image, callback: AsyncCallback): void; /** * Queue buffer to dirty queue and uses a promise to return the result. * - * @param { Image } interface + * @param { Image } image * @returns { Promise } A Promise instance used to return the operation result. * @syscap SystemCapability.Multimedia.Image.ImageCreator * @since 9 */ - queueImage(interface: Image): Promise; + queueImage(image: Image): Promise; /** * Subscribe callback when releasing buffer -- Gitee