| 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={
"screenRect":{
"left":200,
"top":100,
"width":200,
"height":200},
"imageSize":{
"width":300,
"height":300},
"rotation":0,
"displayId":0
varscreenshotOptions={
"screenRect":{
"left":200,
"top":100,
"width":200,
"height":200},
"imageSize":{
"width":300,
"height":300},
"rotation":0,
"displayId":0
};
screenshot.save(ScreenshotOptions,(err,data)=>{
if(err){
console.error('Failed to save the screenshot. Error: '+JSON.stringify(err));