Capture canvas region image
easyeda_canvas_capture_regionCapture a specific rectangular canvas region as a PNG by zooming to it; oversized images are downsampled without cropping to keep the full area.
Instructions
Zoom to a rectangular document/canvas region and capture it as PNG. This moves the visible viewport. Oversized PNGs are downsampled without cropping, preserving the complete requested region.
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 | ||
| downsampled | No | ||
| image_base64 | No | ||
| not_available | No | ||
| image_dimensions | No | ||
| payload_budget_bytes | No | ||
| original_image_dimensions | No |