Capture canvas region image
easyeda_canvas_capture_regionZoom to a rectangular region on the EasyEDA canvas and capture it as a PNG image to visually verify a specific area of your design.
Instructions
Zoom the EasyEDA canvas to a rectangular region (document/canvas coordinates) and capture it as a PNG, so the caller can visually verify a specific area. This moves the user's visible viewport — EasyEDA Pro has no offscreen rendering API. The image is delivered once, as its own content block.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | Yes | First vertical edge in document/canvas coordinates. | |
| left | Yes | First horizontal edge in document/canvas coordinates. | |
| right | Yes | Second horizontal edge; either edge order is accepted. | |
| tabId | No | ||
| bottom | Yes | Second vertical edge; either edge order is accepted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| captured | Yes | ||
| file_name | No | ||
| mime_type | No | ||
| byte_length | No | ||
| image_base64 | No | ||
| not_available | No |