Documentation
On this page

Function · Desktop Services

renderDrawingToPng

Renders a validated drawing document to a transparency-preserving PNG file.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

Signature

TypeScript
renderDrawingToPng(document: DrawingDocument, path: string): Promise<void>

Parameters

NameTypeDescription
documentDrawingDocument
pathstring

Returns

Promise<void>

Source

SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1410 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.