From 99fa8bffaea90e7ed988541baa765e5350841100 Mon Sep 17 00:00:00 2001 From: yangfan Date: Wed, 27 Mar 2024 12:03:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E7=A0=81=E6=8F=90=E4=BE=9B=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yangfan --- api/@ohos.multimedia.image.d.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/api/@ohos.multimedia.image.d.ts b/api/@ohos.multimedia.image.d.ts index 16e195415..c7ae35401 100644 --- a/api/@ohos.multimedia.image.d.ts +++ b/api/@ohos.multimedia.image.d.ts @@ -3959,6 +3959,17 @@ declare namespace image { */ getImageInfo(index?: number): Promise; + /** + * Get image information from image source synchronously. + * + * @param { number } index - Index of sequence images. If this parameter is not specified, default value is 0. + * @returns { ImageInfo } The image information. + * @syscap SystemCapability.Multimedia.Image.ImageSource + * @crossplatform + * @since 12 + */ + getImageInfoSync(index?: number): ImageInfo; + /** * Creates a PixelMap object based on image decoding parameters. This method uses a promise to * return the object. @@ -4049,6 +4060,17 @@ declare namespace image { */ createPixelMap(options: DecodingOptions, callback: AsyncCallback): void; + /** + * Create a PixelMap object based on image decoding parameters synchronously. + * + * @param { DecodingOptions } options - Image decoding parameters. + * @returns { PixelMap } Return the PixelMap. If decoding fails, return undefined. + * @syscap SystemCapability.Multimedia.Image.ImageSource + * @crossplatform + * @since 12 + */ + createPixelMapSync(options?: DecodingOptions): PixelMap; + /** * Creates a PixelMap array based on image decoding parameters. This method uses a promise to * return the array.