From 35fe6c1c159314d2ab6c57fff97efde2c58dea61 Mon Sep 17 00:00:00 2001 From: zhaona45 Date: Fri, 25 Jul 2025 10:35:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=A1=86=E6=9E=B6API20=20Ark?= =?UTF-8?q?TS=E9=9D=99=E6=80=81=E8=AF=AD=E6=B3=95API=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaona45 Change-Id: Ic9f4f13161e7d274ad5ac38abb88676376d70185 --- api/@ohos.multimedia.image.d.ts | 42 ++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index a6870458c6..d01ccb4833 100644 --- a/api/@ohos.multimedia.image.d.ts +++ b/api/@ohos.multimedia.image.d.ts @@ -7639,7 +7639,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; @@ -7875,7 +7876,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; + createPictureAtIndex(index: int): Promise; + + /** + * Decodes an image at the specified index into a Picture object. + * + * @param { number } index Image index. + * @returns { Promise } Promise that returns the Picture object. + * @throws { BusinessError } 7700101 - Bad source. + * @throws { BusinessError } 7700102 - Unsupported MIME type. + * @throws { BusinessError } 7700103 - Image too large. + * @throws { BusinessError } 7700203 - Unsupported options. For example, index is invalid. + * @throws { BusinessError } 7700301 - Decoding failed. + * @syscap SystemCapability.Multimedia.Image.ImageSource + * @since 20 + * @arkts 1.2 + */ + createPictureAtIndex(index: int): Promise; /** * Decodes to a SDR PixelMap, using a as wide gamut as possible. @@ -9241,7 +9263,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise @@ -10076,7 +10099,8 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise