createProjectScreenshot
async createProjectScreenshot(size: [number, number], type: "base64" | "arraybuffer" | "uint8array" | "blob" = "base64"): Promise<string | ArrayBuffer | Uint8Array | Blob>
Parameters
| Name | Type | Description |
|---|---|---|
| size | [number, number] | Size of the screenshot in pixels |
| type | 'base64' | 'arraybuffer' | 'uint8array' | 'blob' | Type of the returned value |
Description
Creates a screenshot of the current project.
Example
const screenshot = await NetDecor.v3.project.createProjectScreenshot([1024, 768], 'blob');
const url = URL.createObjectURL(screenshot);
window.open(url, '_blank');