Save window rendering results to image

Hi, you can take a screenshot of your vtk.js window via captureImages:

renderWindow.captureImages()[0].then(
  (image) => { console.log(image); }
);

image will contain a data URI with a png-encoded image.

2 Likes