JeremyHeleine / Photo-Sphere-Viewer

A JavaScript library to display Photo Sphere panoramas.
854 stars 952 forks source link

How to save the current screenshot #122

Open note744 opened 3 years ago

note744 commented 3 years ago

How to save the current screenshot

makeCarry commented 1 year ago

// Render the scene and camera so the screen doesn't refresh in real time PSV.renderer.render(); // Get a data URI that contains the image display PSV.container.querySelector('canvas').toDataURL("image/png")