Open Design

Render to bitmap

☝️
If you want to learn more about fallback fonts and other best practices using Render, check out the tutorial.

Render allows you to generate a bitmap of either an entire artboard or a specific layer. You can use this output as a preview for your users, to simplify complex geometry, and more. For more info about Render, check out this page.

Render an entire artboard to PNG

To render an entire artboard, call the artboard.renderToFile() method on an artboard.

Here's an example:

Render a specific layer to PNG

To render a layer in an artboard, call the layer.renderToFile() method on a layer.

Here's an example: