Home > SCH_ManufactureData > getPngFile
SCH_ManufactureData.getPngFile() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
获取 PNG 文件
Signature
typescript
function getPngFile(
fileName?: string,
resolution?: ISCH_ExportPngResolution,
): Promise<File | undefined>;1
2
3
4
2
3
4
Parameters
Parameter | Type | Description |
|---|---|---|
fileName | string | (Optional) 文件名 |
resolution | (Optional) 导出图片分辨率,见 ISCH_ExportPngResolution |
Returns
Promise<File | undefined>
PNG 文件数据(或压缩包)
Remarks
ADD since EDA v3.2.183 支持按长宽分辨率导出高清图片(最大 4096); 支持只传入 width 或 height 中的任意一个,另一侧将按原始比例自动拉伸输出; width 与 height 均不传时,按当前一倍分辨率输出
/ EDA v4.1.23