| options | [ScreenshotOptions](#screenshotoptions) | No | Screenshot settings consist of **screenRect**, **imageSize**, **rotation**, and **displayId**. You can set the parameters separately.|
| callback | AsyncCallback<image.PixelMap> | Yes | Callback used to return a **PixelMap** object. |
| callback | AsyncCallback<[image.PixelMap](js-apis-image.md#pixelmap7)> | Yes | Callback used to return a **PixelMap** object. |
**Example**
```js
varScreenshotOptions={
varscreenshotOptions={
"screenRect":{
"left":200,
"top":100,
...
...
@@ -85,12 +85,13 @@ Takes a screenshot and saves it as a **PixelMap** object. This API uses an async