| uri | string | Yes | Image path. Currently, only the application sandbox path is supported.<br>Currently, the following raw formats are supported: .jpg, .png, .gif, .bmp, and .webp.|
| uri | string | Yes | Image path. Currently, only the application sandbox path is supported.<br>Currently, the following formats are supported: JPG, PNG, GIF, BMP, Webp, and RAW.|
**Return value**
...
...
@@ -958,7 +958,7 @@ Creates an **ImageSource** instance based on the URI.
| uri | string | Yes | Image path. Currently, only the application sandbox path is supported.<br>Currently, the following raw formats are supported: .jpg, .png, .gif, .bmp, and .webp.|
| uri | string | Yes | Image path. Currently, only the application sandbox path is supported.<br>Currently, the following formats are supported: JPG, PNG, GIF, BMP, Webp, and RAW.|
| options | [SourceOptions](#sourceoptions9) | Yes | Image properties, including the image index and default property value.|
**Return value**
...
...
@@ -1045,7 +1045,7 @@ Creates an **ImageSource** instance based on the buffers.
**Example**
```js
constbuf=newArrayBuffer(96);
constbuf=newArrayBuffer(96);// 96 is the size of the pixel map buffer to create. The value is calculated as follows: height x width x 4.
constimageSourceApi=image.createImageSource(buf);
```
...
...
@@ -1100,7 +1100,7 @@ Creates an **ImageSource** instance in incremental mode based on the buffers.
**Example**
```js
constbuf=newArrayBuffer(96);
constbuf=newArrayBuffer(96);// 96 is the size of the pixel map buffer to create. The value is calculated as follows: height x width x 4.
| format | number | Yes | Image format, which is a constant of [ImageFormat](#imageformat9). |
| format | number | Yes | Image format, which is a constant of [ImageFormat](#imageformat9). (Currently, the value of this parameter is agreed between the user and camera. In the future, there may be other application scenarios. The receiver is used only for transfer. Currently, only **ImageFormat:JPEG** is supported.) |
| capacity | number | Yes | Maximum number of images that can be accessed at the same time.|
**Return value**
...
...
@@ -1784,7 +1784,7 @@ Creates an **ImageReceiver** instance by specifying the image width, height, for