diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index a6870458c6fe4762939041d6cb77a31ef547c80b..3967d44041141ef350c14e7a733b62ef51b7b1a2 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 } Promise that returns the Picture object. * @throws { BusinessError } 7700101 - Bad source. * @throws { BusinessError } 7700102 - Unsupported MIME type. @@ -9225,7 +9231,23 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): Promise; + createPictureAtIndex(index: int): Promise; + + /** + * Decodes an image at the specified index into a Picture object. + * + * @param { int } 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 22 + * @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