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