KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a HTML canvas element which is resized when the user resizes the screen. canvas.height = pageHeight(); canvas.width = pageWidth(); The actual resizing works fine, but it blanks the canvas. I would like to keep the contents. Is there another method of changing the size of a canvas element, or is there a way to store the contents and then draw them back to the canvas?
Tags (comma-separated)
Save Edits
Cancel