Page.snapshotRect

Capture a snapshot of the page within the specified rectangle and coordinate system.

{
  "name": "snapshotRect",
  "description": "Capture a snapshot of the page within the specified rectangle and coordinate system.",
  "parameters": [
    {
      "name": "x",
      "type": "integer",
      "description": "X coordinate"
    },
    {
      "name": "y",
      "type": "integer",
      "description": "Y coordinate"
    },
    {
      "name": "width",
      "type": "integer",
      "description": "Rectangle width"
    },
    {
      "name": "height",
      "type": "integer",
      "description": "Rectangle height"
    },
    {
      "name": "coordinateSystem",
      "$ref": "CoordinateSystem",
      "description": "Indicates the coordinate system of the supplied rectangle."
    }
  ],
  "returns": [
    {
      "name": "dataURL",
      "type": "string",
      "description": "Base64-encoded image data (PNG)."
    }
  ]
}