[deutsch]

Export a figure as PNG

The PNG export works in Firefox, Chrome and Safari, but not in Internet Explorer and Edge. Moreover, due to security restriction when loading fonts, the PNG export only works when the files are served over the HTTP or HTTPS protocol (not via direct file:// access).

This is an example of the member function renderPNG() of a figure.

By pressing the button below,

renderPNG({ width: width, height: height, pixelSize: pixelSize })

is called, where width, height and pixelSize are taken from the inputs below. The values of the input areas can be left empty. In this case the default values are used. For more details, please refer to the render input documentation.

width
height
pixelSize