diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index 4fad81eecd160a905f47f48068c2ea132a90f974..b80597663be63afaa0a50e022ae1620e7387b3bf 100644 --- a/api/@ohos.multimedia.image.d.ts +++ b/api/@ohos.multimedia.image.d.ts @@ -7441,6 +7441,13 @@ function createUnpremultipliedPixelMap(src: PixelMap, dst: PixelMap): 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 + */ + createPictureAtIndex(index: number): Promise; + /** * Decodes to a SDR PixelMap, using a as wide gamut as possible. * For a SDR ImageSource, decodes to a SDR PixelMap using its native color space.