mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-08 07:36:38 +00:00
解码提供同步接口
Signed-off-by: yangfan <yangfan174@huawei.com>
This commit is contained in:
parent
90d0b2d3b2
commit
99fa8bffae
22
api/@ohos.multimedia.image.d.ts
vendored
22
api/@ohos.multimedia.image.d.ts
vendored
@ -3959,6 +3959,17 @@ declare namespace image {
|
||||
*/
|
||||
getImageInfo(index?: number): Promise<ImageInfo>;
|
||||
|
||||
/**
|
||||
* 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<PixelMap>): 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.
|
||||
|
Loading…
Reference in New Issue
Block a user