AARRGGHHH Posted January 21, 2018 Share Posted January 21, 2018 I have resized an image to fit inside a canvas without any problems. However, now I need to resize a canvas without resizing the image that it contains. How do I do this? Thank You Link to comment Share on other sites More sharing options...
Ingolme Posted January 22, 2018 Share Posted January 22, 2018 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now