alexche8 Posted March 22, 2017 Report Share Posted March 22, 2017 Hello everyone! Is there a way to change canvas size to preloaded background image size? And only after that do the code at create function. Thanks. Quote Link to comment Share on other sites More sharing options...
wo997 Posted March 22, 2017 Report Share Posted March 22, 2017 Try using img.naturalWidth, img.naturalHeight, is it enough? Is there a problem with making canvas of that size now? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.