Interface: ExportImageOptions
Options shared by toBase64, toFile, and saveToPhotoLibrary.
Properties
| Property | Type | Description |
|---|---|---|
format? | ExportFormat | Defaults to 'png'. |
quality? | number | 0..1 quality applied to JPEG encoding only. Ignored for PNG (always lossless). Defaults to 1. |
trim? | boolean | Crop the rendered bitmap to the strokes' bounding box (plus a small margin) instead of the full canvas size. Defaults to false, except for saveToPhotoLibrary where it defaults to true. |