Canvas export to image/jpeg #1534
Answered
by
drcmda
gauravarya83
asked this question in
Q&A
-
I am trying to export canvas to image/jpeg using gl.domElement.toDataURL("image/jpeg"), but image is all black. Can anyone please help. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
drcmda
Jul 18, 2021
Replies: 1 comment 1 reply
-
you need the preserveDrawingBuffer flag |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gauravarya83
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you need the preserveDrawingBuffer flag