Jump to content

How do I size a Canvas without resizing the image inside?


Recommended Posts

You can changing the size of the surface of the canvas by changing its width and height properties using Javascript. After this, though, you will need to call the drawImage() function again since resizing the canvas also clears its content.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...